-
Notifications
You must be signed in to change notification settings - Fork 27k
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
transpile Package SCSS/CSS Modules #41856
Comments
as soon as you move the ui also to the transpilePackages option then scss modules are not allowed
|
I tried both with css and scss and I can confirm both are not working for me either. experimental: {
appDir: true,
transpilePackages: ['@acme/ui'],
}, packages/ui/build/Carousel.js ...
import styles from './Carousel.module.css';
...
|
@balazsorban44 |
I have the same issue. What is best practice here? Should the |
+1 on this. Feel free to check this stackblitz for a repro example: https://stackblitz.com/edit/node-rqan3w |
Fixes #41856. There is no way to apply those loader rules to specific directories, especially when `transpileModules` is used. This PR changes that to be based on the issuer layer. ## Bug - [ ] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm build && pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md) Co-authored-by: JJ Kasper <jj@jjsweb.site>
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. |
Describe 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
The text was updated successfully, but these errors were encountered: