-
Notifications
You must be signed in to change notification settings - Fork 429
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
injectBabelPlugin is broken in react-app-rewired 2.0.1 #348
Comments
我也遇到这个问题 mark一下 |
From README:
All helper functions:
have been removed with commit 0848602 |
Checkout something like customize-cra for helpers which uses this repo as a dependancy https://github.com/arackaf/customize-cra#addbabelpluginsplugins . If you take a look there @arackaf has quite a few helpers far beyond what was part of this repo. https://github.com/arackaf/customize-cra#addlessloaderloaderoptions This repo will at this point focus on the basics of exposing the config. You can also write your own helpers. |
HERE IS THE SOLUTION !WHY IT HAPPENED ?the new version of what should i do in and-design ?make sure u installed 'customize-cra' and and then here is the
|
Does your cssModules work? |
My config-overrides.js (I'm using antd-mobile-samples/create-react-app/ boilerplate)
|
Deployment failed due to change in react-app-rewired - timarney/react-app-rewired#348
This worked beautifully. If anyone has a failing build/deployment, make sure to install https://github.com/arackaf/customize-cra#addlessloaderloaderoptions |
i want to use viewport ,how to config it . react-app-rewire-postcss. |
what about less modules and typescript ? |
Figured it Out . if some needs 'create-react-app with Ant-Design , less modules, Typescript example |
Thank you it works like a charm. |
Thanks for the solution, but I'm not getting it to work. Anyone can help or give me a hint about how to solve the issue? My setup:
When running yarn start, I get the following error: Failed to compile.
./src/entities/scratchpad/theme/antd/custom-theme.less (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-8-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--5-oneOf-8-3!./node_modules/less-loader/dist/cjs.js??ref--5-oneOf-8-4!./src/entities/scratchpad/theme/antd/custom-theme.less)
TypeError: this.getOptions is not a function I have Tailwind installed and running so I guess that de postcss-loader is not the problem. I've read that the problem maybe with less-loader version, but cannot get ant version of it working. Anyone knows why may be this happening and how to solve it? SolvedSOLVED: check this issue arackaf/customize-cra#253 |
A solution: all the above is clear as mud to us backend engineers just starting out with React, iterating on the community's 3 or 4 years' worth of hackish workarounds to fundamental problems with
Here's my answer (hopefully helps others who follow the same google rabbit-hole): define these in your
The
Note: Here are the error messages this is intended to resolve for users of
|
i update react-app-rewired 2.0.1 to fixed #343
but
injectBabelPlugin
cannot work.env:
config-overrides.js
i got this error
well.
how to fixed this ?
The text was updated successfully, but these errors were encountered: