-
Notifications
You must be signed in to change notification settings - Fork 414
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
@linaria/babel doesn't work #704
Comments
Hi @ym-project I've also faced that problem. As a workaround, you can replace |
Your solution requires an additional dependency Error: [BABEL] .../linaria-test/src/index.js: Cannot find module '@linaria/shaker' But after installing it's ok. |
Yep, it's correct dependency. Just forgot to add it to the documentation. |
I use |
It's a kludge too. Also if your config file is I never write a babel plugin and never work with a monorepo. What's really wrong with this plugin? |
According to https://github.com/babel/babel/blob/208acb1d6c216b265fd49b9d393237a45725ff6a/packages/babel-core/src/config/files/plugins.js#L79, Babel tries to standardize all names of plugins and presets. If we rename |
Sounds good to me |
|
Environment
packages
software
Description
When I try to bundle the project I get an error:
As I understand babel can not to find
@linaria/babel
. Instead of necessary package babel try to find@linaria/babel-preset-babel
. Previous version (2.0) haslinaria/babel
package and it works great.Reproducible Demo
https://github.com/ym-project/linaria-babel-bug
The text was updated successfully, but these errors were encountered: