原有项目转npm,构建报错
原有的项目,升级了开发工具到最新,依赖版本也是2.3, 在项目根目录下执行npm build --production , 然后在开发工具上选择:工具-》构建npm, 执行失败:错误信息如下: 发生错误 SyntaxError: Unexpected character '#' (1:0)SyntaxError: Unexpected character '#' (1:0) at Parser.pp$4.raise (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2610:13) at Parser.pp$8.getTokenFromCode (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:3252:8) at Parser.pp$8.readToken (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2975:15) at Parser.pp$8.nextToken (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:2966:15) at Parser.parse (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:542:8) at Proxy.parse (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/node_modules/acorn/dist/acorn.js:3669:37) at i (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/bc2b895ee57942c71d19191b1e204b79.js:1:1177) at j (/Applications/wechatwebdevtools.app/Contents/Resources/package.nw/js/bc2b895ee57942c71d19191b1e204b79.js:1:5677) at <anonymous>