Comments (4)
@paustint I had this issue with VSCode on both this repo's extension and tslab. I downgraded my VSCode to 1.78 and this seems to have resolved the issue
EDIT: Added a PR for VS Code to fix this microsoft/vscode#186812
from typescript-notebook.
I am having this issue
from typescript-notebook.
I have the same issue.
It used to work perfectly, and I did not change anything and it suddenly stopped working out of no where on all my computers and all my projects no matter the setup.
I can run the code just fine and it works, but in the editor node_modules imports do not work.
The issue does not appear to be the same as these, since npm imports are broken and I am not attempting to do anything cross-cell.
from typescript-notebook.
It seems to be vscode's own bug.
The vscode use a virtual path to represent cells in a notebook file (you can see the virtual path in the log by enable "typescript.tsserver.log": "verbose"
and open the log file mentioned in typescript extension output).
https://github.com/microsoft/vscode/blob/f6bc90dc1f367dcd596209ae62add169b11845cf/extensions/typescript-language-features/src/typescriptServiceClient.ts#L714C76-L718
Which, unfortunately broke relative path.
Because the typescript language server would assume your file under other (relative path) places
And thus no relative path would work.
I wonder if change the vscode to append inMemoryResourcePrefix, scheme and authority in the file name instead will fix the path. But I have no experience to edit vscode itself. So I don't know how to test it yet.
from typescript-notebook.
Related Issues (20)
- Better error reporting? HOT 5
- How to convert a Node.js Notebooks to a different format ?? HOT 1
- understanding extension scope HOT 3
- import is unavailable in the next cell HOT 3
- Notebook server not starting when using Remote - SSH HOT 1
- nvm support HOT 1
- Desctructing object error
- Allow default imports
- Local Type declaration files (.d.ts) are not loaded
- Experimental feature of JavaScript
- video player
- Error on import ES module HOT 1
- cannot redeclare block scoped variable
- support /configs to use with linters?
- cannot find imports HOT 4
- Can't invoke custom array prototype method HOT 2
- Unreliable output HOT 1
- The input box is incompletely displayed
- Got error while import Apache echarts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from typescript-notebook.