0

Currently using a default rails app install with webpacker and react, I'm stuck with the following error SyntaxError: Unexpected keyword 'const'. Const declarations are not supported in strict mode

I might be possible to extend this easily I guess, just have no clue about how to do it. I tried to use some webpack config I do have in other working nodejs environments, with no success.

Thx a lot for any help

Ben
  • 5,030
  • 6
  • 53
  • 94
  • Possible duplicate of [SyntaxError: Use of const in strict mode](https://stackoverflow.com/questions/22603078/syntaxerror-use-of-const-in-strict-mode) – hoffm Oct 26 '17 at 15:33
  • @hoffm You're saying it should work out of the box on safari with the default rails/webpacker ? – Ben Oct 26 '17 at 15:38

0 Answers0