Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use local babel in babel-plugin-espower #147

Merged
merged 1 commit into from
Nov 7, 2015

Conversation

uiur
Copy link
Contributor

@uiur uiur commented Nov 7, 2015

Fix #129

Fix error that babel-plugin-espower resolves a different Babel version.

C:\Users\Frontend\AppData\Roaming\nvm\v0.12.5\node_modules\ava\node_modules\babel-core\lib\transformation\plugin.js:121
      throw new TypeError(messages.get("pluginNotFile", this.key));
            ^
TypeError: Plugin "babel-plugin-espower" is resolving to a different Babel version than what is performing the transform
ation.
    at Plugin.buildPass (C:\Users\Frontend\AppData\Roaming\nvm\v0.12.5\node_modules\ava\node_modules\babel-core\lib\tran
sformation\plugin.js:121:13)
    at PluginManager.add (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\transformation\file\plugin-manager.js:216:5
5)
    at File.buildTransformers (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\transformation\file\index.js:237:21)
    at new File (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\transformation\file\index.js:139:10)
    at Pipeline.transform (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\transformation\pipeline.js:164:16)
    at Object.transformFileSync (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\api\node.js:137:37)
    at compile (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\api\register\node.js:132:20)
    at normalLoader (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\api\register\node.js:199:14)
    at Object.require.extensions.(anonymous function) [as .js] (D:\Workflow\sandbox\aa\node_modules\babel-core\lib\api\r
egister\node.js:216:7)
    at Module.load (module.js:355:32)
TypeError: Cannot read property 'stack' of undefined
    at error (C:\Users\Frontend\AppData\Roaming\nvm\v0.12.5\node_modules\ava\cli.js:50:19)
    at processImmediate [as _immediateCallback] (timers.js:367:17)
From previous event:
    at Object.<anonymous> (C:\Users\Frontend\AppData\Roaming\nvm\v0.12.5\node_modules\ava\cli.js:206:34)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

This issue is reproduced when using a different version of local babel. #129 (comment)

Fix the issue that babel-plugin-espower resolves a different Babel version
sindresorhus added a commit that referenced this pull request Nov 7, 2015
Use local babel in babel-plugin-espower
@sindresorhus sindresorhus merged commit 5910c6b into avajs:master Nov 7, 2015
@sindresorhus
Copy link
Member

Thanks @uiureo :)

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.

resolving to a different Babel version
2 participants