nuxt-community / koa-template

Starter template for Nuxt.js with KoaJS.
https://koa.nuxtjs.org
382 stars 62 forks source link

Failed to Start Dev #50

Closed zgunz42 closed 6 years ago

zgunz42 commented 6 years ago

After first install the template i got this error

CMD: yarn dev

OUTPUT

 ERROR  Failed to compile with 1 errors                                                                                                                  11:50:11

 error  in ./server/index.js

Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /home/ubuntu/workspace/node_modules/backpack-core/babel.js
    at createDescriptor (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
    at items.map (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
    at Array.map (<anonymous>)
    at createDescriptors (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
    at createPresetDescriptors (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
    at passPerPreset (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-descriptors.js:58:96)
    at cachedFunction (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/caching.js:33:19)
    at presets.presets (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-descriptors.js:29:84)
    at mergeChainOpts (/home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-chain.js:315:26)
    at /home/ubuntu/workspace/node_modules/@babel/core/lib/config/config-chain.js:278:7

module.js:549
    throw err;
    ^

Error: Cannot find module '/home/ubuntu/workspace/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:188:16)
    at bootstrap_node.js:609:3
This question is available on Nuxt community (#c33)
ghost commented 6 years ago

This issue as been imported as question since it does not respect koa-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload. If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically. Your question is available at https://cmty.app/nuxt/koa-template/issues/c33.