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