pro-mern-stack icon indicating copy to clipboard operation
pro-mern-stack copied to clipboard

Page 28 'Transform' Section - App.jsx does not compile, needs .bablerc

Open Docwali777 opened this issue 9 years ago • 3 comments

I had issue with Transform until I added a .babelrc in the project folder and in the file I added

{ "presets": ["react"] }

after the file was added I was able to transform the App.jsx file

Docwali777 avatar Mar 09 '17 01:03 Docwali777

The instructions in the book asks you to use the command line parameter --presets react while running babel. That way, you don't have to create the .babelrc file. What you have done is also acceptable. It's great that you were able to figure this out yourself.

vasansr avatar Mar 09 '17 09:03 vasansr

I refresh the edit page, but i can get noting. errors say cannot get localhost:8000/issues/app.bundle.js

ReadingCommando avatar May 11 '18 03:05 ReadingCommando

Can you post your code or github link for review

Docwali777 avatar May 11 '18 10:05 Docwali777