nuxt运行报错
来源:5-1 Nuxt.js基础(1)

慕婉清3442332
2018-10-25
ERROR Failed to compile with 1 errors 21:26:50
error in ./server/index.js
Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/pengxing/my-pro/nuxtpro/node_modules/backpack-core/babel.js
at createDescriptor (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
at items.map (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
at Array.map ()
at createDescriptors (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPresetDescriptors (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
at passPerPreset (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-descriptors.js:58:96)
at cachedFunction (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/caching.js:33:19)
at presets.presets (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-descriptors.js:29:84)
at mergeChainOpts (/Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-chain.js:315:26)
at /Users/pengxing/my-pro/nuxtpro/node_modules/@babel/core/lib/config/config-chain.js:278:7
module.js:549
throw err;
^
Error: Cannot find module '/Users/pengxing/my-pro/nuxtpro/build/main.js’
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3
2回答
-
慕婉清3442332
提问者
2018-10-26
把nuxt降级到1.4.2怎么降低?
是在nuxt-community后面加@1.4.2么??我安装的时候 报错提示该资源不存在?
112019-02-20 -
快乐动起来呀
2018-10-25
把nuxt降级到1.4.2
00
相似问题