import-sort icon indicating copy to clipboard operation
import-sort copied to clipboard

TypeError: Cannot set property 'id' of undefined

Open levrik opened this issue 6 years ago • 2 comments

Using the command import-sort --write "src/**/*.ts{,x}".

.importsortrc

{
  ".ts, .tsx": {
    "parser": "typescript",
    "style": "module"
  }
}

levrik avatar Sep 23 '19 14:09 levrik

Okay. The README was quite misleading here.

By default, import-sort comes with these styles

This sounded like all of these styles are shipped with the import-sort-cli package but this isn't true. Only the default one is shipped.

levrik avatar Sep 23 '19 14:09 levrik

I just ran into this too, a good fix for this issue would be a check whether the requested plugin exists and exit with an intelligent error message and error code 1 when it does not.

KingaJanicka avatar Mar 16 '21 12:03 KingaJanicka