error info:
Uncaught TypeError: Cannot set property 'comment' of undefined
at Object.extend (prism.js:90)
at Object.
at Object.
at __webpack_require__ (bootstrap 4821f47ec4e428c4e6c0:659)
at fn (bootstrap 4821f47ec4e428c4e6c0:85)
at Object.
at __webpack_require__ (bootstrap 4821f47ec4e428c4e6c0:659)
at fn (bootstrap 4821f47ec4e428c4e6c0:85)
at Object.
at __webpack_require__ (bootstrap 4821f47ec4e428c4e6c0:659)
+1, same from me
+2, same from me
so,What should I do?
Did you get this on stackedit.io ? Can you share a markdown sample to reproduce the issue ?
stackedit.io..Quick start ,I can run up
no error have report
But...

Can you try to reinstall your node_modules with npm v5?
fine I run up,but i alawys use npm v 5.6.
so i speculate,it‘s Network link problem
because in other linux computer,I find the PhantomJS Downloads are always impossible to complete。
And again to execute install,the can't be download
Need rm node_modules and /tmp/PhantomJS。
other maybe before i use chineses path cause some error,This is very common
but I don't want to prove it
In any case thx
+3, same problem for me
楼上那个..这个问题已经解决了....
就两个可能
1、依赖安装不完全
2、文件目录有中文.
Upgrade npm to the latest version npm i npm@latest -g is work for me
Yes, upgrading to the latest npm and running npm install again should fix the problem.
I upgrade my npm and cnpm to the latest version(npm 6.1.0, cnpm 6.0.0).
Then remove node_modules folder and execute cnpm install to reinstall the dependency packages.
But the problem remains unresolved.
你看它安装PhantomJS是不是报错了..
比如下载进度没到100%....
或者你可以先想办法把PhantomJS装上再,重新安装依赖...
这个问题大概率是..依赖安装不完全...
前面已经提过了..
问题找到了,这个不是npm版本的问题。而是prismjs的问题。由于package.json中配置的是"prismjs": "^1.6.0",我这里下载包的时候直接下载了最新版1.15.0,而最新版本的prismjs有BUG,所以会一直报错(测试的1.15.0和1.14.0都有问题)。换成1.9.0版本就没有问题了(因为package-lock.json中是1.9.0)。
参加我提的这个issue,https://github.com/PrismJS/prism/issues/1448
英文比较渣,可能会有语法上的问题,凑合看吧。
@jaune162 试过你的方法,改成1.9.0的版本然后就可以了
我的方法是:
npm install [email protected]npm installnpm start
Most helpful comment
+2, same from me
so,What should I do?