vue cli3项目npm run build就Maximum call stack size exceeded

npm run serve 可以成功跑起来, npm run build就Maximum call stack size exceeded

`D:\mobilenode_modulestapablelibHookCodeFactory.js:32

                            fn = new Function(
                                 ^

RangeError: Maximum call stack size exceeded

at new Function (<anonymous>)
at AsyncSeriesHookCodeFactory.create (D:\mobile\node_modules\tapable\lib\HookCodeFactory.js:32:10)
at AsyncSeriesHook.compile (D:\mobile\node_modules\tapable\lib\AsyncSeriesHook.js:24:18)
at AsyncSeriesHook._createCall (D:\mobile\node_modules\tapable\lib\Hook.js:24:15)
at AsyncSeriesHook.lazyCompileHook [as callAsync] (D:\mobile\node_modules\tapable\lib\Hook.js:153:21)
at source.tapAsync (D:\mobile\node_modules\enhanced-resolve\lib\ResultPlugin.js:16:26)
at AsyncSeriesBailHook.eval [as callAsync] (eval at create (D:\mobile\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:7:1)
at Resolver.doResolve (D:\mobile\node_modules\enhanced-resolve\lib\Resolver.js:235:16)
at resolver.getHook.tapAsync (D:\mobile\node_modules\enhanced-resolve\lib\NextPlugin.js:16:13)
at AsyncSeriesBailHook.eval [as callAsync] (eval at create (D:\mobile\node_modules\tapable\lib\HookCodeFactory.js:32:10), <anonymous>:7:1)
at Resolver.doResolve (D:\mobile\node_modules\enhanced-resolve\lib\Resolver.js:235:16)
at fs.stat (D:\mobile\node_modules\enhanced-resolve\lib\FileExistsPlugin.js:29:14)
at process.nextTick (D:\mobile\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:73:15)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mobile@0.1.0 build: vue-cli-service build && gulp copy
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mobile@0.1.0 build 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:UserspingAppDataRoamingnpm-cache_logs2020-06-17T16_17_52_483Z-debug.log`

阅读 2.5k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题