Skip to content

Conversation

okcoker
Copy link

@okcoker okcoker commented Jun 27, 2018

If you're doing any sort of JSON.parse of your babelrc file, these keys need quotes. Otherwise you run into something like:

undefined:24
            globals: ["Error"],
            ^

SyntaxError: Unexpected token g in JSON at position 591
    at JSON.parse (<anonymous>)
    at Object.<anonymous> (/path/file.js:38:26)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Function.wrappedLoad [as _load] (/path/node_modules/newrelic/lib/shimmer.js:344:38)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant