Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

esm error: Identifier '__global__' has already been declared #671

Closed
pvdlg opened this issue Nov 14, 2018 · 3 comments
Closed

esm error: Identifier '__global__' has already been declared #671

pvdlg opened this issue Nov 14, 2018 · 3 comments
Labels

Comments

@pvdlg
Copy link

pvdlg commented Nov 14, 2018

This is a follow up to avajs/eslint-plugin-ava#210.

I finally found a way to reproduce the issue:

So after starting Atom it will work for the firt file opened and all the files in the same project. Opening a file from another project will cause the issue.
I'm guessing it's because for each project an instance of the linter will be created and esm fails during the creation of the second instance due to a conflict with the __global__ variable.

@jdalton
Copy link
Member

jdalton commented Nov 16, 2018

Thanks for the repro @pvdlg!

Fixed by 9c2ecdf#diff-332068872182b2165b3007bf6930b230.

@pvdlg
Copy link
Author

pvdlg commented Nov 27, 2018

@jdalton thanks for the fix! Do you plan to release it soon by any chance?

@jdalton
Copy link
Member

jdalton commented Nov 27, 2018

Soonish. I should release before I start of more aggressive perf work. I'll ping back this thread when it's released.

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

No branches or pull requests

2 participants