We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm struggling since many hours trying to find a way to get my compass and susy framework to run in my nextjs app.
compass
susy
I am using global style sheets to run scss. Everything works fine and i can process to basics scss operations.
However i cannot use compass and susy Frameworks.
I don't know what to do more :
{ test: /\.s(a|c)ss$/, use: ['babel-loader', 'raw-loader','postcss-loader', { loader: 'sass-resources-loader?includePaths[]=' + path.resolve(__dirname, "./node_modules/compass-mixins/lib") + "&includePaths[]=" + path.resolve(__dirname, "./mixins/app_mixins"), options: { resources: ['./styles/scss/pageone.scss','./styles/scss/pagetwo.scss'] } } ] },
But i'm getting these errors every time :
(Emitted value instead of an instance of Error) postcss-import: .../scss/file.scss:2:1: Cannot find module 'compass' from '../styles/scss'
(Emitted value instead of an instance of Error) postcss-import: .../scss/file.scss:2:1: Cannot find module '~susy/sass/susy' from '../styles/scss'
in my scss files i declare these frameworks just like that :
@import 'compass @import '~susy/sass/susy'
@import 'compass
@import '~susy/sass/susy'
I don't know what to do more.
Thanks for helping.
The text was updated successfully, but these errors were encountered:
Okay i think i can handle compass and susy importation by changing my setup :
{ test: /\.s(a|c)ss$/, use: ['babel-loader', 'raw-loader','postcss-loader', { loader: 'sass-loader', options: { includePaths: ['styles',"node_modules", 'node_modules/compass-mixins/lib'] .map((d) => path.join(__dirname, d)) .map((g) => glob.sync(g)) .reduce((a, c) => a.concat(c), []) } } ] }
However, i get a new error. Its seems mixins aren't recognized at all :
Module build failed: @include container(600px); ^ No mixin named container
Any idea ?
Sorry, something went wrong.
Please see https://github.com/zeit/next.js/tree/v3-beta/examples/with-global-stylesheet, you can't just use a webpack loader. This has been explained in many issues. If you search for css in the issues you'll find exactly why. #1245
No branches or pull requests
I'm struggling since many hours trying to find a way to get my
compass
andsusy
framework to run in my nextjs app.I am using global style sheets to run scss. Everything works fine and i can process to basics scss operations.
However i cannot use
compass
andsusy
Frameworks.I don't know what to do more :
But i'm getting these errors every time :
in my scss files i declare these frameworks just like that :
@import 'compass
@import '~susy/sass/susy'
I don't know what to do more.
Thanks for helping.
The text was updated successfully, but these errors were encountered: