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

Binding not found for BindingIdentifier #549

Closed
xxoo opened this issue May 23, 2017 · 2 comments
Closed

Binding not found for BindingIdentifier #549

xxoo opened this issue May 23, 2017 · 2 comments
Labels
bug Confirmed bug

Comments

@xxoo
Copy link

xxoo commented May 23, 2017

environment

nodejs@7.10
babel-core@6.24.1
babel-preset-babili@0.1.1
babel-preset-env@1.5.1

test.js

var babel = require('babel-core');
var t = babel.transformFileSync('code.js', {
	presets: [["env",{"targets":{"browsers":"ie >= 7"}}],"babili"],
	babelrc: false
});

code.js

console.log({
	a: function(){}
});

command line

node test.js

result

/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-core/lib/transformation/file/index.js:590
      throw err;
      ^

Error: code.js: Binding not found for BindingIdentifier. aPlease report this at https://github.com/babel/babili/issues/new
    at BindingIdentifier (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-plugin-minify-mangle-names/lib/index.js:216:21)
    at newFn (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-traverse/lib/visitors.js:318:17)
    at bfsTraverse (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-plugin-minify-mangle-names/lib/bfs-traverse.js:34:43)
    at Mangler.collect (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-plugin-minify-mangle-names/lib/index.js:260:9)
    at Mangler.run (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-plugin-minify-mangle-names/lib/index.js:70:14)
    at PluginPass.exit (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-plugin-minify-mangle-names/lib/index.js:580:19)
    at newFn (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-traverse/lib/visitors.js:276:21)
    at NodePath._call (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-traverse/lib/path/context.js:76:18)
    at NodePath.call (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-traverse/lib/path/context.js:48:17)
    at NodePath.visit (/Users/xx/Desktop/fusion/dev/common/kernel/node_modules/babel-traverse/lib/path/context.js:117:8)
@boopathi
Copy link
Member

Thanks for the repro.

Duplicate #547

@boopathi
Copy link
Member

Released in 0.1.2

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

No branches or pull requests

2 participants