Vilsad P P
Vilsad P P

Reputation: 1569

Uncaught SyntaxError: Use of const in strict mode in chrome 40

Our ReactJS application created using create-react-app is not getting indexed in google. Upon investigation, found out that google crawler is using Chrome v40 engine to parse client side apps. So I got hold of Chrome 40 and tried to load the page. I got an error in console saying

Loading chunk 13 failed. Uncaught SyntaxError: Use of const in strict mode.

I tried to apply polyfill (babel polyfill as well as some others) but this error is not going away.

Any advise? Is there anything I can do to make create-react-app to correctly transpile the code to Chrome 40 compatible ?

Upvotes: 2

Views: 1511

Answers (1)

Vilsad P P
Vilsad P P

Reputation: 1569

The issue happened because i was using a component which was not compatible. https://github.com/yahoo/react-stickynode. It worked perfectly after i removed this.

Upvotes: 0

Related Questions