-
-
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
Failed to compile v1 and higher #808
Comments
Same error for me with However, a fresh install works fine. There must be something conflicting with the current project, based on what I saw here: tldr;
diff --git a/package.json b/package.json
index e5266c46..54fd5e41 100644
--- a/package.json
+++ b/package.json
@@ -25,11 +25,10 @@
"test": "nps test",
"writeTranslations": "node scripts/writeTranslations.js"
},
+ "resolutions": {
+ "webpack/acorn": "6.1.1"
+ },
@@ -91,11 +87,14 @@
"@sindresorhus/fnv1a": "1.0.0",
"@starbucks/eslint-config-starbucks": "1.1.0",
"@starbucks/openapi-mock": "4.1.0",
+ "acorn": "6.1.1",
"artillery": "1.6.0-26",
"babel-eslint": "10.0.1",
"chai": "4.2.0",
"cross-env": "5.1.3",
"deep-freeze": "0.0.1",
+ "docz": "1.0.4",
+ "docz-theme-default": "1.0.4",
"dotenv-safe": "6.1.0",
"easy-fix": "3.1.0",
"eslint": "5.7.0",
@@ -114,6 +113,8 @@
"nps": "5.9.0",
"nps-utils": "1.5.0",
"prettier": "1.12.1",
+ "react": "16.8.6",
+ "react-dom": "16.8.6",
"require-inject": "1.4.4",
"sinon": "7.2.3",
"sinon-chai": "3.3.0", |
As @ericclemmons mentioned. This should be cuased by Webpack not docz.
There are also some more useful workarounds in the conversation but they are a little more complicated. Have a try. 😀 |
@fi3ework can we lock the |
@huchenme |
Sure, I will find some time to create one
…On 22 Apr 2019, 1:02 PM +0800, Wee ***@***.***>, wrote:
@huchenme
I believe it's a solution. However, I'm not pretty sure does it really can solve the problem as currently no reproduced repo is provided and due to #817, after lock webpack to 4.28.4. The problem still exist. Could you provide a minimal reprodced repo or give me a hint how to reproduce it?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hey @huchenme, did you manage to find time to come up with a reproduction repo? |
Thanks @huchenme 🙌 |
@Glazy sorry I could not reproduce it on my personal laptop today, I might spend sometimes deep into the issue this week using work laptop |
Using yarn instead of npm doesn't prevent this problem. |
I believe I was able to reproduce this issue with this repo: https://github.com/MarkMurphy/docz-issue-808 |
I have the same issue with Create React App 3.0. Here is what I've noticed: To get it working with CRA 3 I need to use
Here is a working repo with version |
Run |
This solved it for me. No need to install webpack |
If I add
|
yarn add react-hot-loader@latest --dev It can solve your problem. |
I was having the same issue even with |
@rakannimer what is the reason this issue get closed? |
Bug Report
Expected behavior
In dev and prod mode have this error
Environment
The text was updated successfully, but these errors were encountered: