-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FATAL Nuxt Build Error #37
Comments
I also tried nuxt-stylus-resources-loader resolve = require('path').resolve
['nuxt-stylus-resources-loader', resolve(__dirname, 'assets/**/*.styl')] with almost the same result, error message now is a little bit more verbose at WebpackBundler.webpackCompile (node_modules/@nuxt/webpack/dist/webpack.js:5262:15)
at processTicksAndRejections (internal/process/next_tick.js:81:5) |
@chiboreache Hey 👋 Please provide a reproduction repo. Dynamic asset imports should work like shown in |
@manniL hello again ✋ Nice link, but I'm using stylus ;) so example file says styleResources: {
stylus: ['~assets/variables.styl']
}, I can't provide anything, I just have mixins and styl file with classes, which are I want to reuse by importing in pages via `@import '~assets/someClasses' or globally, as I mentioned above Global import not work, meanwhile simple importing works in dev and causing an error during the building time Just right after the message: |
Try
Then you can reproduce it by putting them in a codesandbox so I can play around with the project ;) |
Just loaded my mega neat setup into CS, and apparently furthermore, I realised some undocumented logic css: ['~assets/onlyForStyling.styl'],
styleResources: {
stylus: ['~assets/everythingElse.styl'] or even
stylus: ['~assets/*.styl'] but not without css object
}, So it works, sort of So yeah, have fun heh https://codesandbox.io/s/o7rppmxmny?fontsize=14&module=%2Fnuxt.config.js |
So, I'm back My conclusion:
but I am still get an error for my project 😔 Ironically problem was in just an one string of styl file — what a shame... but yeah, it would be awesome if |
Wildcard import — causing error
Dot import — simple not working
npx nuxt build →
Version: webpack 4.29.6
and so on
The text was updated successfully, but these errors were encountered: