Closed gurkerl83 closed 9 months ago
It seems that since then, the check has been updated and it lets you run it with
compiler: {
emotion: true
}
Did not work on 13.3.4, works on 13.4.12.
Should be working
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.
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
Turbopack (--turbo)
Link to the code that reproduces this issue
No reproduction
To Reproduce
Create a new project, turbopack instruction
Replace next with latest canary in my case 13.3.1-canary.6. Set config option "compiler - emotion or styledComponents", this landed just a few hours before the canary version mentioned was build.
Describe the Bug
Still receiving that compiler is not supported at all. Guess there is a problem how configuration object "compiler" gets evaluated in https://github.com/vercel/next.js/blob/e97100c5eaff9351ab8b6c83c5341994f22f60e9/packages/next/src/lib/turbopack-warning.ts
Unsupported Next.js configuration option(s) (next.config.js) To use Turbopack, remove the following configuration options:
Expected Behavior
When the compiler options are white-listed they should work similar to the experimental object. In https://github.com/vercel/next.js/blob/e97100c5eaff9351ab8b6c83c5341994f22f60e9/packages/next/src/lib/turbopack-warning.ts extra steps are required to eval the experimental option, for the compiler option I can not see any of those steps in warning.ts
Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
Executing the dev script in package.json generates the bug
yarn dev