You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever I use a scoped style that has specific Stylus grammar like '/' for comments, I get a build error such as
Module build failed (from ./node_modules/vue-loader/lib/loaders/stylePostLoader.js):
Error: Unexpected '/'. Escaping special characters with \ may help.
at Root._error (/app/node_modules/postcss-selector-parser/dist/parser.js:160:16)
at Root.error (/app/node_modules/postcss-selector-parser/dist/selectors/root.js:43:19)
at Parser.error (/app/node_modules/postcss-selector-parser/dist/parser.js:726:21)
at Parser.unexpected (/app/node_modules/postcss-selector-parser/dist/parser.js:744:17)
at Parser.combinator (/app/node_modules/postcss-selector-parser/dist/parser.js:642:12)
at Parser.parse (/app/node_modules/postcss-selector-parser/dist/parser.js:1081:14)
at Parser.loop (/app/node_modules/postcss-selector-parser/dist/parser.js:1023:12)
at new Parser (/app/node_modules/postcss-selector-parser/dist/parser.js:150:10)
at Processor._root (/app/node_modules/postcss-selector-parser/dist/processor.js:55:18)
at Processor._runSync (/app/node_modules/postcss-selector-parser/dist/processor.js:102:21)
at Processor.processSync (/app/node_modules/postcss-selector-parser/dist/processor.js:199:23)
at rewriteSelector (/app/node_modules/@vue/component-compiler-utils/dist/stylePlugins/scoped.js:65:12)
at Root.each (/app/node_modules/postcss/lib/container.js:101:16)
at /app/node_modules/@vue/component-compiler-utils/dist/stylePlugins/scoped.js:16:10
at LazyResult.run (/app/node_modules/postcss/lib/lazy-result.js:295:14)
at LazyResult.sync (/app/node_modules/postcss/lib/lazy-result.js:281:26)
As soon as the style isn't scoped anymore I don't have any trouble. That also doesn't happen if I'm not using style-resources-module.
Whenever I use a scoped style that has specific Stylus grammar like '/' for comments, I get a build error such as
As soon as the style isn't scoped anymore I don't have any trouble. That also doesn't happen if I'm not using style-resources-module.
My nuxt.config.js:
My guess is that Webpack is using a different loader when I have a scoped style tag but I don't know how I could verify or fix that.
The text was updated successfully, but these errors were encountered: