esm error: Identifier '__global__' has already been declared

Created on 14 Nov 2018  路  3Comments  路  Source: standard-things/esm

This is a follow up to https://github.com/avajs/eslint-plugin-ava/issues/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.

bug

All 3 comments

Thanks for the repro @pvdlg!

Fixed by https://github.com/standard-things/esm/commit/9c2ecdf21b696c02068a0ed34e00a361ada263f7#diff-332068872182b2165b3007bf6930b230.

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

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

Was this page helpful?
0 / 5 - 0 ratings