Open samuelstroschein opened 2 years ago
Assigning the import to a variable does not crash the following cell. TypeScript still complains though.
The issue exists in multiple jupyter related repositories.
https://github.com/yunabe/tslab/issues/56 https://github.com/microsoft/vscode/issues/130000
A workaround is const tslab = require("tslab") as typeof import('tslab')
thanks for filling this issue, and sorry You're thinking into this. unfortunately this is a bug in the typescript language server. they don't support notebooks
Importing a package works as expected in the cell where the import is defined. However, typescript lints in following cells that the import is unavailable and upon execution, a crash occurs.
Related to https://github.com/DonJayamanne/typescript-notebook/issues/12?