-
-
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
Can't use ES6 default variables with create-react-app? SOLVED #512
Comments
Answered my own question. Of course, To fix it, I added babel processing for my server code by running the following in my server folder:
and also added the following to the server package.json
I can now use
|
Yeah, we don’t really support any server solution out of the box, that is up to you. |
I have a working piece of code that I want to port to a create-react-app project, and stumbled over the compile error below for my server-side. Am I missing something?
[I also had to add "use strict"; to the head of the file to get farther....]
The text was updated successfully, but these errors were encountered: