create-nuxt-app icon indicating copy to clipboard operation
create-nuxt-app copied to clipboard

Error after setup - Unexpected identifier - Missing stack frames

Open mistGit opened this issue 7 years ago • 5 comments

Screenshot_2019-05-27 Screenshot

Getting this error after setup using "npx create-nuxt-app"

Versions: Nuxt: tried both 2.7.1 & edge(2.8.0) Npm: 6.4.1 Node: 10.15.3 (Also tried reinstalling...)

No additional modules installed.

Options selected when installing: Server: None UI Framework: Bootstrap Testing framework: None Nuxt mode: Universal Added Axios

Any ideas on how to fix this issue? I tried to look around for similar issues, but none of them seemed related to me. Sorry if this thread is a duplicate of another one. I just still haven't managed to figure this out yet.

mistGit avatar May 27 '19 06:05 mistGit

try running 'npm run generate' and then 'npm run dev'

ghost avatar May 27 '19 08:05 ghost

@nderewianka Unfortunately it had no effect.

Interesting thing is that when I build it for production and run it after that, it works, But 'npm run dev' doesn't.

mistGit avatar May 27 '19 08:05 mistGit

still having the same problem. do you slve it?

ghost avatar May 27 '19 14:05 ghost

It's the bootstrap-vue that cause the problem.

Try this: In nuxt.config.js , under modules remove 'bootstrap-vue/nuxt'.

then create BootstrapVue.js under folder plugins. import Vue from 'vue' import BootstrapVue from 'bootstrap-vue' Vue.use(BootstrapVue)

Back to nuxt.config.js, and register the plugins manually

plugins: [ 'plugins/BootstrapVue' ],

ghost avatar May 27 '19 14:05 ghost

@noven Thanks a lot! This solution got it working!

mistGit avatar May 27 '19 15:05 mistGit