module evaluates ESM helpers from SWC output #1177
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
cat: performance 🚀
Issue is related to performance
needs: complete repro 🖥️
Issue need to have complete repro provided
platform: next.js 🛠️
Issue related to next.js
Environment
Description
Basically the problem is the same as in #1046 and repros in (microsoft/griffel#309). I am struggling to provide an isolated repro for this:
To run it:
yarn
yarn nx test @griffel/e2e-nextjs
The test will fail, but it will create a temporary directory like that:
Move to that dir and run
rm -rf .next && DEBUG=linaria\* LINARIA_LOG=debug yarn next build
.Input
The interesting part of the log:
The most relevant line is:
It tries to evaluate ESM helpers and fails 💥
Reproducible Demo
See above.
The text was updated successfully, but these errors were encountered: