transpile Package SCSS/CSS Modules
See original GitHub issueDescribe the feature you’d like to request
to transpile scss modules in a monorepo you still have to use https://www.npmjs.com/package/next-transpile-modules
But the documentation indicates that the package is replaced
Describe the solution you’d like
Add support for scss transpile to the transpilePackage functionality https://beta.nextjs.org/docs/api-reference/next.config.js#transpilepackages
Describe alternatives you’ve considered
update the docs that you still need next-transpile-modules for scss files
To use the appDir function it is required to remove next-transpile-modules
This results in this error
../../packages/ui/components/authSidebar/authSidebar.module.scss
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
> .root {
| --placeholder-style: 1;
| }
Issue Analytics
- State:
- Created a year ago
- Reactions:14
- Comments:6
Top Results From Across the Web
How to Use Sass with CSS Modules in Next.js - freeCodeCamp
Step 1: Installing Sass in a Next.js app ... While Next.js comes with some good built-in CSS support, it doesn't come with Sass...
Read more >How to configure SCSS modules for Webpack
SCSS modules are a fantastic way of writing clean, self contained styles, that are usually consumed by components.
Read more >sass-loader - webpack - JS.ORG
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >How to transpile scss with Babel for a react package?
As far as I know, yes. You need more than just Babel if you want to deal with SCSS. The reason is that...
Read more >esbuild-sass-plugin - npm
esbuild plugin for sass/scss files supporting both css loader and css result import (lit-element). Latest version: 2.4.4, last published: 3 ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I tried both with css and scss and I can confirm both are not working for me either.
packages/ui/build/Carousel.js
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.