Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

npm run watch + npm run test-only: babelHelpers not defined #398

Closed
ghost opened this issue Mar 6, 2017 · 0 comments
Closed

npm run watch + npm run test-only: babelHelpers not defined #398

ghost opened this issue Mar 6, 2017 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Mar 6, 2017

To reproduce:

  • Clone
  • npm install
  • npm run watch
  • npm run test-only

The error is:

/.../babylon/lib/tokenizer/types.js:47
  babelHelpers.inherits(KeywordTokenType, _TokenType);
  ^

ReferenceError: babelHelpers is not defined
    at C:\Users\anhans\work\bbl\babylon\lib\tokenizer\types.js:47:3

The error only happens when using watch. If you use npm run build instead, there's no error.
Removing the "external-helpers" plugin from .babelrc fixes the problem, but I presume it's there for a reason.

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

No branches or pull requests

1 participant