Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FATAL:SyntaxError: Unexpected token 'export' #2

Open
JiHanHuang opened this issue Jan 25, 2021 · 1 comment
Open

FATAL:SyntaxError: Unexpected token 'export' #2

JiHanHuang opened this issue Jan 25, 2021 · 1 comment

Comments

@JiHanHuang
Copy link

我想在我的hexo博客中使用这个插件。我在使用Markdown-it插件时,增加了你的这个组件。执行:hexo g的时候报错了:

/root/code/Blog/node_modules/[email protected]@markdown-it-graphviz/common/viz.es-changed.js:276
export default Viz;
^^^^^^

SyntaxError: Unexpected token 'export'
    at Module._compile (internal/modules/cjs/loader.js:892:18)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/root/code/Blog/node_modules/[email protected]@markdown-it-graphviz/index.js:14:13)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Module.require (internal/modules/cjs/loader.js:849:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at /root/code/Blog/node_modules/hexo-renderer-markdown-it/lib/renderer.js:31:25
    at Array.reduce (<anonymous>)
    at Hexo.module.exports (/root/code/Blog/node_modules/hexo-renderer-markdown-it/lib/renderer.js:27:22)
    at Hexo.tryCatcher (/root/code/Blog/node_modules/bluebird/js/release/util.js:16:23)
    at Hexo.<anonymous> (/root/code/Blog/node_modules/bluebird/js/release/method.js:15:34)
    at /root/code/Blog/node_modules/hexo/lib/hexo/render.js:60:20
    at tryCatcher (/root/code/Blog/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/root/code/Blog/node_modules/bluebird/js/release/promise.js:517:31)
    at Promise._settlePromise (/root/code/Blog/node_modules/bluebird/js/release/promise.js:574:18)

多谢大佬。

@aiyoudiao
Copy link
Owner

aiyoudiao commented Jul 11, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants