[Vuejs]-Nuxt.js generate and Three.js – SyntaxError: Cannot use import statement outside a module

4👍

You have to add the following line to the build section in the Nuxt.config.js file:

build:{
transpile:[“three”]
}

That should do the trick!

👤Dacxj0

Leave a comment