nuxt-community / module-template

Starter template for Nuxt.js Modules
MIT License
127 stars 34 forks source link

Template doesn't compile #51

Closed zoellner closed 4 years ago

zoellner commented 4 years ago

Tried to use template. Doesn't run when using without any changes after

npx vue-cli init nuxt-community/module-template test-module
cd test-module
npm i
npm run dev

Output is:

  ╭─────────────────────────────────────────╮
   │                                         │
   │   Nuxt.js @ v2.14.0-26582020.6ab65fbf   │
   │                                         │
   │   ▸ Environment: development            │
   │   ▸ Rendering:   server-side            │
   │   ▸ Target:      server                 │
   │                                         │
   │   Listening: http://localhost:3000/     │
   │                                         │
   ╰─────────────────────────────────────────╯

ℹ Preparing project for development                                                                                                      15:01:06
ℹ Initial build may take a while                                                                                                         15:01:06
✔ Builder initialized                                                                                                                    15:01:06
✔ Nuxt files generated                                                                                                                   15:01:06

✖ Client
  Compiled with some errors in 4.64s

✔ Server
  Compiled successfully in 3.87s

 ERROR  Failed to compile with 40 errors                                                                                 friendly-errors 15:01:12

These dependencies were not found:                                                                                       friendly-errors 15:01:12
                                                                                                                         friendly-errors 15:01:12
* core-js/modules/es6.array.find in ./example/.nuxt/client.js                                                            friendly-errors 15:01:12
* core-js/modules/es6.array.from in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js            friendly-errors 15:01:12
* core-js/modules/es6.array.iterator in ./example/.nuxt/client.js                                                        friendly-errors 15:01:12
* core-js/modules/es6.date.to-string in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js        friendly-errors 15:01:12
* core-js/modules/es6.function.name in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js         friendly-errors 15:01:12
* core-js/modules/es6.object.assign in ./example/.nuxt/client.js                                                         friendly-errors 15:01:12
* core-js/modules/es6.object.keys in ./example/.nuxt/client.js                                                           friendly-errors 15:01:12
* core-js/modules/es6.object.to-string in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js and 1 other
* core-js/modules/es6.promise in ./example/.nuxt/client.js                                                               friendly-errors 15:01:12
* core-js/modules/es6.regexp.constructor in ./example/.nuxt/utils.js                                                     friendly-errors 15:01:12
* core-js/modules/es6.regexp.match in ./example/.nuxt/client.js                                                          friendly-errors 15:01:12
* core-js/modules/es6.regexp.replace in ./example/.nuxt/utils.js, ./example/.nuxt/components/nuxt.js                     friendly-errors 15:01:12
* core-js/modules/es6.regexp.search in ./example/.nuxt/utils.js                                                          friendly-errors 15:01:12
* core-js/modules/es6.regexp.split in ./example/.nuxt/utils.js, ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib??vue-loader-options!./example/.nuxt/components/nuxt-build-indicator.vue?vue&type=script&lang=js&
* core-js/modules/es6.regexp.to-string in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js      friendly-errors 15:01:12
* core-js/modules/es6.string.ends-with in ./example/.nuxt/utils.js                                                       friendly-errors 15:01:12
* core-js/modules/es6.string.includes in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js       friendly-errors 15:01:12
* core-js/modules/es6.string.iterator in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js       friendly-errors 15:01:12
* core-js/modules/es6.string.repeat in ./example/.nuxt/utils.js                                                          friendly-errors 15:01:12
* core-js/modules/es6.string.starts-with in ./example/.nuxt/utils.js                                                     friendly-errors 15:01:12
* core-js/modules/es6.symbol in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js                friendly-errors 15:01:12
* core-js/modules/es7.array.includes in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js        friendly-errors 15:01:12
* core-js/modules/es7.object.get-own-property-descriptors in ./example/.nuxt/index.js                                    friendly-errors 15:01:12
* core-js/modules/es7.promise.finally in ./example/.nuxt/client.js                                                       friendly-errors 15:01:12
* core-js/modules/es7.symbol.async-iterator in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js friendly-errors 15:01:12
* core-js/modules/web.dom.iterable in ./example/.nuxt/client.js, ./example/.nuxt/components/nuxt-link.client.js          friendly-errors 15:01:12
                                                                                                                         friendly-errors 15:01:12
To install them, you can run: npm install --save core-js/modules/es6.array.find core-js/modules/es6.array.from core-js/modules/es6.array.iterator core-js/modules/es6.date.to-string core-js/modules/es6.function.name core-js/modules/es6.object.assign core-js/modules/es6.object.keys core-js/modules/es6.object.to-string core-js/modules/es6.promise core-js/modules/es6.regexp.constructor core-js/modules/es6.regexp.match core-js/modules/es6.regexp.replace core-js/modules/es6.regexp.search core-js/modules/es6.regexp.split core-js/modules/es6.regexp.to-string core-js/modules/es6.string.ends-with core-js/modules/es6.string.includes core-js/modules/es6.string.iterator core-js/modules/es6.string.repeat core-js/modules/es6.string.starts-with core-js/modules/es6.symbol core-js/modules/es7.array.includes core-js/modules/es7.object.get-own-property-descriptors core-js/modules/es7.promise.finally core-js/modules/es7.symbol.async-iterator core-js/modules/web.dom.iterable
ℹ Waiting for file changes                                                                                                               15:01:12
ℹ Memory usage: 213 MB (RSS: 291 MB)                                                                                                     15:01:12
ℹ Listening on: http://localhost:3000/                                                                                                   15:01:12
pi0 commented 4 years ago

Hi @zoellner. This problem should be resolved with latest nuxt (2.14.0 stable) as we auto detect core-js version (https://github.com/nuxt/nuxt.js/pull/7785)

BTW the recommended package manager for nuxt module development is yarn.