-
Notifications
You must be signed in to change notification settings - Fork 59
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
Module parse failed: Unexpected token #851
Comments
It seems as if you did not install antd, openlayers and react. Please try: npm i antd@3.9.0 ol@4.6.5 react@16.4.2 This is untested, but we'll surely check ourselves what the problem might be. Another thing which comes to my mind is probably incompatible versions. Thanks for the report! |
For the error of:
The latest version of react-geo Cheers! |
Thanks @marcjansen. I had done Thanks @zuhrasofyan. I edited the package.json as you suggested. The result of npm install is
Unfortunately I get the same error:
But this time in the command window where I had done
Maybe it is a Windows specific issue? I use Windows 10 and VS Code. I'll try and find out how to white list the file. It also strikes me that the error message
is referring to UPDATE |
Hey guys. The problem is a combination of the workshop (created with "create-react-app") and the outsourcing of the utils #766.
So the workshop will not work in the current stage. (I'll updated the Readme later on.) A workaround could be to eject ( The workaround of @zuhrasofyan should work as well and is easier. @PeterC66 If you added I hope it helps. |
Thanks @KaiVolland I will try that now. I also want to report that I have now just managed to turn off my BitDefender protection and the Hello World button shows OK. I need to work out which aspect of BitDefender is the problem. |
Can we close this issue? |
This should be fixed as both |
When I do the workshop I get the error message:
I have repeated the whole process several times in the last 3 days and each time it has failed in the same way. I added my first failed attempt to issue #838 but, since that was initially about a different problem, I am raising this new issue.
The terminal session showed:
At that point all is working as expected, and after changing App.js per 2.2 of the workshop it is still OK.
The terminal session for page 2.3 of the workshop is
On http://localhost:3000/ all is still OK, but when I then edit App.js as per page 2.4 I get the Failed to compile error listed above. To check on the versions of packages I did npm ls:
It seems odd there are so many errors.
I am new to npm and this way of working, and I don't know if it is relevant, but looking specifically at the
UNMET PEER DEPENDENCY react@16.4.2
message I tried:There is a react folder in C:\projects\my-app\node_modules, and its package.json has the line
"_id": "react@16.4.2",
Is there something wrong with my set-up, or am I doing something wrong?
The text was updated successfully, but these errors were encountered: