Trouble while compiling a Nuxt.js project


I’m just trying to create a simple Nuxt.js project, and my pages/index.vue just has Hello World! text

While making my build script nuxt build && nuxt start, I keep getting this error:

ERROR in ./pages/index.vue?vue&type=script&lang=js&

Module not found: Error: Can't resolve '../../rbd/pnpm-volume/ff3877d0-a676-4b0f-8ced-a3a88e9e8c8c/node_modules/' in '/app/pages'

 @ ./pages/index.vue?vue&type=script&lang=js& 1:0-449 1:465-468 1:470-916 1:470-916

 @ ./pages/index.vue

 @ ./.nuxt/router.js

 @ ./.nuxt/index.js

 @ ./.nuxt/client.js

 @ multi ./.nuxt/client.js

Any help would be appreciated, thanks!


Hello! It seems like the tool you’re using to resolve modules can’t find the babel-loader/@babel file that you’re trying to import in app/pages/index.vue.

Do you mind sharing the name of the project so someone here can take a look?


Hey! Sure, it’s pikas-pogo-stick iirc. (the only one on my account)

Thanks in advance!


Hey, I tried some more things and couldn’t get it to work, mind checking my project out and see if anything went wrong in your end?


Hey @ThatNerdyPikachu sorry for the delay on this - I hope to take a closer look at your project today.


Sounds good, thanks!


Hey @cori any updates? Sorry for bothering you this much!


Not yet, and sorry for the delay - I haven’t had a chance to look into it yet.


Sounds good, thank you! And it’s fine, I understand how busy it must be at the Glitcn office, hah.


Hey @ThatNerdyPikachu we might have a line on this and it seems like it’s a bug around vue, yarn, and babel-loader. I’m assuming that you’re using yarn based on the contents of your project, so correct me if I’m wrong about that. If you are you might take a look at, which touches on a few common aspects to what you’re seeing here.

Running the suggested solution (yarn add -D babel-loader) in the console for a project remixed from your got rid of the nuxt build error. Some other things popped up and I’m not familiar enough with Nuxt, Vue, and Webpack all together to know off the top of my head where they’re coming from (although I do think you’re missing a } after!/pikas-pogo-stick?path=pages/index.vue:28:0 in your current vue file)

Hope that helps!


Hey Cori!

Sadly, running that command resulted in a conflicting of paths with the 2 versions of babel loader… Should I try purging the yarn cache?


Certainly worth a try!