-
Notifications
You must be signed in to change notification settings - Fork 27.2k
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
Turbopack Sass loader does not resolve imports correctly #60088
Comments
Same issue here, a project works without turbopack, and fails with this error with turbo. |
To: Vercel / Next.js / Turbopack Teams Developers need SCSS support in TurbopackThe integration of SCSS/SASS support in Turbopack could significantly boost its adoption. |
This comment was marked as spam.
This comment was marked as spam.
Next.js with Turbopack is now passing all tests we have for Sass support, including importing external packages 🙌 Please give it a try using |
@timneutkens |
The latest I also created a fully reproduce repo
Tested on |
Thanks for the report @Cow258, it only happened to imported files indeed which we didn't have a test for. It's been fixed in vercel/turborepo#7813 which will go out on canary on monday. |
Hi there, @timneutkens I have tested it, and it is working fine now. No issues. Thanks for your nice work! |
Thanks for confirming, closing this issue 👍 |
This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Link to the code that reproduces this issue
https://github.com/meiyingqishi/primer-next-demo
To Reproduce
yarn create next-app
.yarn add @primer/css @primer/react styled-components@^5 sass
.yarn dev
, but it’s not work when runyarn dev --turbo
.ok status
exception for not ok
Current vs. Expected behavior
Same as before.
Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.2.0: Wed Nov 15 21:53:18 PST 2023; root:xnu-10002.61.3~2/RELEASE_ARM64_T6000 Binaries: Node: 21.3.0 npm: 10.2.3 Yarn: 1.22.21 pnpm: 8.12.1 Relevant Packages: next: 14.0.4 eslint-config-next: 14.0.4 react: 18.2.0 react-dom: 18.2.0 typescript: 5.3.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Turbopack (--turbo)
Additional context
PACK-2182
The text was updated successfully, but these errors were encountered: