Open stabildev opened 2 weeks ago
Seems the root cause is that this Sass option is used but that won't work with Turbopack as it's passing JavaScript functions: https://github.com/darkroomengineering/satus/blob/d1e3a0aa6798ebcc8ed470080c1d330e7739ba25/next.config.js#L45-L56 We'll have to implement a hard error when such config is passed. For Turbopack the config is serialized so that it can be passed to the loader.
Is there a workaround to somehow use Turbopack in this scenario?
Removing the function
config and just setting the value directly in Sass instead.
Link to the code that reproduces this issue
https://github.com/darkroomengineering/satus
To Reproduce
next dev
withnext dev --turbo
inpackage.json
Current vs. Expected behavior
Current behavior:
Expected behavior: Tolerate mixing units like webpack does
Provide environment information
Which area(s) are affected? (Select all that apply)
Turbopack
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
Not affiliated with
satus
Can't provide more in depth context as I am not familiar with sass
PACK-3032