Skip to content

Getting error with babel inside Gatsby #195

@nmn

Description

@nmn

Everytime I try to do gatsby develop I get this error.

I've tried the two latest versions of gatsby with the same result.
I tried use the master from github, ran the build scripts, set published to true and then got the same result.

I guess this is connected to the other issue to upgrade to babel 6. But am I just missing something?

/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126
      if (!option) this.log.error("Unknown option: " + alias + "." + key, ReferenceError);
                           ^

TypeError: Cannot read property 'error' of undefined
  at OptionManager.mergeOptions (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:28)
  at OptionManager.addConfig (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)
  at OptionManager.findConfigs (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)
  at OptionManager.init (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)
  at compile (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/api/register/node.js:117:22)
  at normalLoader (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/api/register/node.js:199:14)
  at Object.require.extensions.(anonymous function) [as .js] (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/api/register/node.js:216:7)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:366:17)
  at require (module.js:385:17)
  at module.exports (/usr/local/lib/node_modules/gatsby/dist/utils/glob-pages.js:42:13)
  at module.exports (/usr/local/lib/node_modules/gatsby/dist/utils/develop.js:85:37)
  at Object.<anonymous> (/usr/local/lib/node_modules/gatsby/bin/develop.js:36:1)
  at Module._compile (module.js:435:26)
  at Module._extensions..js (module.js:442:10)
  at Object.require.extensions.(anonymous function) [as .js] (/usr/local/lib/node_modules/gatsby/node_modules/babel-core/lib/api/register/node.js:214:7)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:311:12)
  at Module.require (module.js:366:17)
  at require (module.js:385:17)
  at Object.<anonymous> (/usr/local/lib/node_modules/gatsby/bin/gatsby-develop.js:4:1)
  at Module._compile (module.js:435:26)
  at Object.Module._extensions..js (module.js:442:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:311:12)
  at Function.Module.runMain (module.js:467:10)
  at startup (node.js:136:18)
  at node.js:963:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions