Skip to content
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 while using craco #13588

Open
dhanraj-chaintech opened this issue May 15, 2024 · 0 comments
Open

Error while using craco #13588

dhanraj-chaintech opened this issue May 15, 2024 · 0 comments

Comments

@dhanraj-chaintech
Copy link

C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules@craco\craco\dist\lib\plugin-utils.js:26
throw new Error("".concat(message, "\n\n") +
^

Error: Can't find file-loader in the development webpack config!

This error probably occurred because you updated react-scripts or craco. Please try updating craco-less to the latest version:

$ yarn upgrade craco-less

Or:

$ npm update craco-less

If that doesn't work, craco-less needs to be fixed to support the latest version.
Please check to see if there's already an issue in the DocSpring/craco-less repo:

If not, please open an issue and we'll take a look. (Or you can send a PR!)

You might also want to look for related issues in the craco and create-react-app repos:

at throwUnexpectedConfigError (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\lib\plugin-utils.js:26:11)
at throwError (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\craco-less\lib\craco-less.js:14:5)
at Object.overrideWebpackConfig (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\craco-less\lib\craco-less.js:165:5)
at overrideWebpack (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\lib\features\plugins.js:36:38)
at C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\lib\features\plugins.js:53:29
at Array.forEach (<anonymous>)
at applyWebpackConfigPlugins (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\lib\features\plugins.js:52:29)
at mergeWebpackConfig (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\lib\features\webpack\merge-webpack-config.js:119:70)
at overrideWebpackDev (C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\lib\features\webpack\override.js:8:80)
at C:\Users\HP5CD\OneDrive\Desktop\app\mern-admin\frontend\node_modules\@craco\craco\dist\scripts\start.js:23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant