-
Notifications
You must be signed in to change notification settings - Fork 116
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
unexpected token error #103
Comments
Hard to say without any context. What's the entire error message + stack trace? |
I'm sorry here is the complete error message and stack trace:
Those characters seem to be the Unicode for the tabs and the new line. However, I remove them and it still complains exactly where the render method of the functional component starts. I am unsure as to what is going on, could it be a babel configuration issue? |
Hard to say. Can you try running the files directly with node? Make a file with: require('babel-core/register');
require('path/to/your/component.js'); and then run it with That should help to remove the amount of machinery and might help to surface the exact problem. |
Hi, I am getting a react.exceptions.ReactRenderingError. I have been testing the code independently on the dev server made by CRA and also by building it and serving index.html with flask. I think there is no unexpected token where it is saying there is a problem, but I am completely new to this and don't know why babel might be saying that.
The text was updated successfully, but these errors were encountered: