-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
ERR_REQUIRE_ESM error on start #1674
Comments
I have this issue as well, running the same versions of the environment as @dangreen is, except I am using windows 10. |
+1 |
+1 |
I am running into this issue as well. Are there any workarounds? |
@ShrijanaCodes – unfortunately no. I fought with this one for several hours and gave up. |
Wow, I may have just got Node 15 working. Here are the required package upgrades / resolutions: "devDependencies": {
"babel-preset-gatsby": "0.12.3"
}
"dependencies": {
"node-sass": "5.0.0",
"gatsby-plugin-sass": "3.0.0"
}
"resolutions": {
"node-sass": "5.0.0",
"**/node-sass": "5.0.0",
"**/sharp": "0.29.2",
"sass-loader": "10.0.5",
"**/sass-loader": "10.0.5"
} |
I think "remark-mdx" is the problem. It work on my computer with yarn. I dont tested with npm. "resolutions": {
"remark-mdx": "1.6.22"
} Env specs: |
+1 |
If you're using
|
Any updates? The above solutions doesn't work for me. Env specs: |
I too am facing this same issue. Is there any workaround for this? |
Same issue here. So much for quickly trying this thing out to see if it is what I need... (fresh project set up as of yesterday, via create-react-app and then installing docz, following the documentation. Using npm) Manually installing the above mentioned version of remark-mdx fixes it partially. docz dev starts, but with a Gatsby error regarding require() of ES modules not being supported. Thus, generating development bundle fails, and the server delivers a blank page with a common.js error in the console. Windows 10, node 16.3.0, npm 8.5.0 So... Storybook it is. |
I also had some other issues after solving this one. It's all about incompatible dependencies ( I posted in a comment how I managed to make it work (using the Gatsby docz theme, instead of docz directly). |
Thanks for responding! However, an issue such as this having been open since October kind of makes me hesitant to continue my evaluation of docz at this point. |
+1 |
I managed to fix this with the code below. The issue is some packages are not compatible and for each error given I had to find the one that is. The gatsby-recipes error was coming from node_modules/gatsby-cli on my side. Now this might not be the same for all. So you can also try downgrading the gatsby-recipes package inside resolutions. Good luck
|
This is happening mainly because all new packages related to Unified are ESM. The new version I'm creating right now fixes this issue :) |
same issue.. |
Any updates on when this version will be released @pedronauck ? This library is currently unusable for modern toolchains - unfortunately have to go back to storybook |
Same here. |
Hi I have the same issue, I see some ideas how to resolve, but is there some ultimate solution ETA which is on the horizon? |
Bug Report
yarn add -D docz react react-dom
yarn docz dev
Environment
The text was updated successfully, but these errors were encountered: