Nuxt.js: Babel Loader Error during nuxt generate

Created on 21 Jul 2017  路  4Comments  路  Source: nuxt/nuxt.js

Greetings,

I am attempting to deploy a static version of my app to gitlab pages,
I noticed the build is failing due to babel-loader barking about not being able to find '~components/MyComponent.vue'

The component is capitalized so i'm not sure if that's part of the problem but running the app locally with npm run dev the issue does not exist.

This question is available on Nuxt.js community (#c990)

Most helpful comment

For the record in case anyone runs into this issue. The problem was with a. Separate line where I was using ~/components vs ~components.

All 4 comments

Please share an example or replicate this glitch @rwatts3 for the given error finding!

Sorry it seems to only happen when I run nuxt-generate and strange enough it only happens when it's run in gitlab's ci tool.
Using node 8.1.0 , it generates just fine then barks about babel-loader.

I'm not sure how to replicate it , since it generates just fine on my mac.

For the record in case anyone runs into this issue. The problem was with a. Separate line where I was using ~/components vs ~components.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maicong picture maicong  路  3Comments

nassimbenkirane picture nassimbenkirane  路  3Comments

surmon-china picture surmon-china  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments