请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

nuxt运行报错

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

正在回答 回答被采纳积分+3

2回答

提问者 慕婉清3442332 2018-10-26 11:13:24

把nuxt降级到1.4.2怎么降低?

是在nuxt-community后面加@1.4.2么??我安装的时候  报错提示该资源不存在?

1 回复 有任何疑惑可以回复我~
  • 砚之 #1
    我也遇到了相同的问题,删除项目文件,重新安装一遍解决了
    回复 有任何疑惑可以回复我~ 2019-02-20 21:19:07
快乐动起来呀 2018-10-25 21:35:05

把nuxt降级到1.4.2

0 回复 有任何疑惑可以回复我~
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信