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

Can't find 'file-loader' issue with react-scripts 5.0.0 #86

Closed
anglee opened this issue Dec 14, 2021 · 9 comments · Fixed by #88
Closed

Can't find 'file-loader' issue with react-scripts 5.0.0 #86

anglee opened this issue Dec 14, 2021 · 9 comments · Fixed by #88

Comments

@anglee
Copy link

anglee commented Dec 14, 2021

react-scripts version 5.0.0
@craco/craco version 6.4.3
craco-less version 1.20.0

/foobar/my-app/node_modules/@craco/craco/lib/plugin-utils.js:29
    throw new Error(
          ^

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

@saifulshihab
Copy link

same here :(

@Hjj1501600921
Copy link

why

@xyy94813
Copy link
Contributor

CRA v5 no longer uses file-loader.

this line cause the problem:

let fileLoaderIndex = oneOfRule.oneOf.findIndex(loaderByName("file-loader"));

@dr2009
Copy link

dr2009 commented Dec 15, 2021

fixed it #87 waiting pr received

if you want use it immediately. try craco-less-fix. i just publish for temporary use

@MyNameIsAlaa
Copy link

any update please?

@Shasha-beep
Copy link

    throw new Error(
          ^

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

What's the problem

@chentle
Copy link

chentle commented Dec 22, 2021

yarn add craco-less-fix, and remove the craco-less,rename the craco-less-fix as craco-less,then it's done,remember to change the data in the craco.config.js

@chentle
Copy link

chentle commented Dec 22, 2021

fixed it #87 waiting pr received

if you want use it immediately. try craco-less-fix. i just publish for temporary use

good,thank u

@flyingcrp
Copy link

is there any progress ? i planning to upgrade my project. 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants