Linaria crashes with EvalError: Unexpected token 'export'
#1242
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
@linaria/webpack5-loader@4.1.16
webpack@5.82.0
Description
Linaria crashes with this error with the minimal reproducible demo below:
Reproducible Demo
https://github.com/nstepien/vite-bug/tree/webpack2
webpack2
branchnpm ci
npm run build
What's really odd is that if I update
react-data-grid
to7.0.0-beta.29
in this repo, the error goes away and webpack builds fine.The
export
error suggest it comes fromclsx
, butclsx
doesn't change.Only the linaria babel preset has issues with
react-data-grid\lib\bundle.js
, so I don't think there's anything wrong with thereact-data-grid
package itself.The text was updated successfully, but these errors were encountered: