【发布时间】:2019-07-06 00:09:13
【问题描述】:
我需要一些帮助。 当我运行 npm run build:ssr && npm run serve:ssr 我收到以下错误
TS2304: Cannot find name 'expect'.
TS2304: Cannot find name 'it'.
TS2304: Cannot find name 'fail'.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! simplestate@0.0.1 webpack:server: `webpack --config webpack.server.config.js --progress --colors`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the simplestate@0.0.1 webpack:server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USER\AppData\Roaming\npm-cache\_logs\2019-02-12T08_57_37_447Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! simplestate@0.0.1 build:ssr: `npm run build:client-and-server-bundles && npm run webpack:server`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the simplestate@0.0.1 build:ssr script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\USER\AppData\Roaming\npm-cache\_logs\2019-02-12T08_57_37_479Z-debug.log
【问题讨论】:
-
在代码中搜索“expect”、“it”和“fail”等词
标签: node.js angular npm webpack