-
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
ERROR: The "getBabelLoader" helper has been deprecated as of v2.0. You can use customize-cra plugins in replacement - https://github.com/arackaf/customize-cra#available-plugins #396
Comments
What is the contents of your |
config-overrides.js:
|
The The section you quoted in the heading of this issue actually tells you exactly what you need to do in order to get this functionality. You need to use/import the plugin from const { override, useEslintRc } = require('customize-cra');
const path = require('path');
module.exports = override(
useEslintRc(path.resolve(__dirname, '.eslintrc'))
); |
Hi @dawnmist, how can I use my Right now I have this configuration in my module.exports = (config, env) => {
config.optimization.runtimeChunk = false;
config.optimization.splitChunks = {
cacheGroups: {
default: false,
}
};
return config;
}; But now I want to use |
I fixed it using the function const { override, useEslintRc, disableChunk } = require('customize-cra');
const path = require('path');
module.exports = override(
useEslintRc(path.resolve(__dirname, '../../.eslintrc.json')),
disableChunk()
); |
@jasondiazg In future, you'll get better responses about how to use customize-cra from the team at customize-cra. Customize-cra has been written by another team who kindly stepped in to maintain new rewires for react-app-rewired after the move by CRA to use webpack 4, and as a result the best people to ask about how to use customize-cra is the team who wrote and maintain it. :) For future reference, if you need to create a custom function for customize-cra that they didn't have an override function for you could wrap it as follows (based on their pre-written overrides): const myCustomFunc = () => (config) => {
// do stuff with config...
return config;
};
module.exports = override(myCustomFunc()); |
I know about #348 .
The code is still broken, I'm still getting an error.
New CRA project.
package.json:
The text was updated successfully, but these errors were encountered: