TypeError
within checkBlockScopedCollisions
: this.hub
is undefined
#228
Labels
TypeError
within checkBlockScopedCollisions
: this.hub
is undefined
#228
Your Environment
Describe the bug
When importing a symbol and declaring a duplicate identifier,
checkBlockScopedCollisions
is called, correctly identifying the duplicate identifier; however, when attempting to throwthis.hub.buildError
,this.hub
is undefined.To Reproduce
file1.js
:file2.js
:prettier
withfile2.js
:Expected behavior
A
SyntaxError
should be raised, similarly to the result of executingPrettier
with the followingfile3.js
:Screenshots, code sample, etc
N/A
Configuration File (cat .prettierrc, prettier.config.js, .prettier.js)
N/A
Error log
Contribute to @trivago/prettier-plugin-sort-imports
The text was updated successfully, but these errors were encountered: