-
Notifications
You must be signed in to change notification settings - Fork 415
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
Broken build when using react-redux #1226
Comments
I tried a whole new setup with Vite, but the build also fails when dealing with react-redux wrapped components:
|
I've tried to find earlier versions of Linaria or Babel that would compile the reproduction repo.
|
Hi @PierreGUI! This #1237 should fix it. |
I built Linaria locally and I confirm it fixes my issue. Thank you so much! |
"@babel/preset-react": "7.12.13",
"@linaria/babel-preset": "4.4.5",
"@linaria/core": "4.2.10",
"@linaria/shaker": "^4.2.11",
"@linaria/webpack-loader": "4.1.17", After the latest update, this error came back:
Unfortunately I'm unable to reproduce it in isolation. |
@Anber sorry to bother you, I can't reopen this issue I but I have a reproduction case now. Would really appreciate if you could have a look, thanks 🙏 PS: for v8 repro case just fork this project and bump |
Hi @PierreGUI! I've found the reason why it doesn't work with v7. I made a fix here #1274 and will merge it as soon as I fix all tests. |
Thanks @Anber! |
Environment
Description
Using react-redux and Linaria breaks build:
EvalError: (0 , _batch.setBatch) is not a function in ...
Reproducible Demo
https://stackblitz.com/edit/linaria-bug-ekrflt?file=src/index.jsx
The text was updated successfully, but these errors were encountered: