-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
create-react-app starting error - Error: No valid exports main found for '\node_modules\colorette' #9273
Comments
me too :( |
I'm also receiving this issue. Haven't upgrade any packages. Happening with both: import 'fontsource-roboto'; |
Fixed this problem by upgrading node.js to v14.5, i've had v13.5 and v13.6 in my laptop. and also removing create-react-app globally: and using: |
It's not working with me :(( |
I've downloaded the latest node.js version and installed it again, I didn't manually upgraded it. |
Thank you, It's working :)) |
I was getting same error and resolved it by this solution. Thanks |
We can fix this issue by installing autoprefixer. |
Thank you, update node version to 14.5 help me solve this error. |
I got this when update my sass-loader or something else with vue, but I has 13x nodejs. After upgrade to latest 14x it fixed. |
Upgrade node to version 14.5 will resolve this issue. |
I was getting the same error. Upgrading node to version 14.5 will resolve the issue. I had v13 Node. |
Me too. I will try to upgrade to 14.5 rn. |
14+ upgrade solved the prob! |
i had tried the solution and it worked, but this morning the same issue came up..... still getting the same error |
I have tried the solution and its works for me. Thanks for the solution. |
Upgrade node to version 14.5 works for me. |
after updating node to 14.5 my npm was giving an error "npm does not support Node.js v14.5.0" if anyones stuck here use "npm install -g npm" it should fix it |
Yes, its works for me! |
|
Fixed this problem by upgrading node.js to v14.5.0. After upgrading, I also had to delete my node_modules folder and rerun npm install. |
Yes, I did the same thing and it worked 🤝, actually there should be an
alert for new update available for these. So that in future others don't
face same problem only because of version change.
RK
…On Tue, 14 Jul, 2020, 7:05 pm Annemarie Köhler, ***@***.***> wrote:
Fixed this problem by upgrading node.js to v14.5.0. After upgrading, I
also had to delete my node_modules folder and rerun npm install.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#9273 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANE5NQU64JHNZDTTYOPG5H3R3RNILANCNFSM4ORPN4VA>
.
|
This is because latest version of colorette doesn't supported on node Version < 14. To uninstall colorette: To install colorette version 1.2.0: This fixed my issue. Else you can simply upgrade the node version. |
Thank you @SumitJadiya this fixed the issue and did not have to upgrade node. |
Thank you. Its works. |
By upgrading to node version 14.5 it really started working. |
npm i autoprefixer@9.8.0 |
you can try |
It works for me also. |
why do we need to upgrade node just for a dependecy? my setup: the following steps worked for me.
2)install autoprefixer thanks to @harryheman @SumitJadiya |
Because without a update this error will be repeated in the future in another dependency
You will loose all Autoprefixer updates by locking old version |
All the above solutions didn't work for me so I have again installed the latest version of Node.js and then installed the create-react-app tool globally: |
worked for me |
|
As mentioned upgrade node version to 14.5.0.
|
AS I am on windows 7 still , I cannot upgrade to latest version of Node After Reading the comments only when did run these all commands , it worked for me npm uninstall react-scripts and After that I added Then only it worked for me |
@RiteshGhorpade it will be better for your case to downgrade to Node.js 12. With Node.js 13 you will have only more problems in the future (since more packages start to use ESM and you have no security updates). |
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs. |
Ok |
its not working |
I got the same issue and after upgrading my node js version my issue is solved, and make sure to install create-react-app with npx |
Without this update the docker build fails at step: $ webpack build internal/modules/cjs/loader.js:628 throw e; ^ Error: No valid exports main found for '/home/node_modules/colorette' at resolveExportsTarget (internal/modules/cjs/loader.js:625:9) at applyExports (internal/modules/cjs/loader.js:502:14) at resolveExports (internal/modules/cjs/loader.js:551:12) at Function.Module._findPath (internal/modules/cjs/loader.js:657:22) at Function.Module._resolveFilename (internal/modules/cjs/loader.js:960:27) at Function.Module._load (internal/modules/cjs/loader.js:855:27) at Module.require (internal/modules/cjs/loader.js:1033:19) at require (/home/node_modules/v8-compile-cache/v8-compile-cache.js:159:20) at Object.<anonymous> (/home/node_modules/webpack-cli/lib/webpack-cli.js:10:66) at Module._compile (/home/node_modules/v8-compile-cache/v8-compile-cache.js:192:30) { code: 'MODULE_NOT_FOUND' } error Command failed with exit code 1. It succeded when I updated to the 14.5 version. facebook/create-react-app#9273
I am using Windows 7 and the latest working Node version is 13.6. Therefore to make it run the only option is to downgrade autoprefixer: |
It looks like this issue can be resolved by upgrading to Node 14 so I'm going to close this issue. |
I have windows 7 32 bit which does not support node version greater than 13.6, what should I do? |
When installing create-react-app I get this error when I start the development server (npm start),
./src/index.css (./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-3-1!./node_modules/postcss-loader/src??postcss!./src/index.css) Error: No valid exports main found for 'myproject\node_modules\colorette'
I've reinstalled create-react-app -g and tryed with npx and I still get this error. Is there anything else I can do?
this is the files of my new created react apps - without node_modules:
newreactapp.zip
The text was updated successfully, but these errors were encountered: