Closed arvind47d closed 4 years ago
I actually found the fix by looking into the docker file. The notebook needs to have a package.json to maintain dependencies and have a local node_modules.
The notebook needs to have a package.json to maintain dependencies and have a local node_modules.
It's weird. tslab is designed to be able to use Node.js modules (@types/node
) and "tslab"
module even if these libraries are not installed locally. Notebooks don't have to be in directories with package.json
. If you could not import "tslab"
without package.json, it's a bug.
What was the code you executed?
I executed the simple example from your get started article after installation to verify setup.
import * as tslab from 'tslab';
console.log('Hello, tslab!')
console.log('Versions:', tslab.versions)
Then, this is a bug though I can not reproduce it.
It would be great if you can check how the special logic about "tslab"
(forwardTslabPath) works when this bug is reproducible by installing tslab from source.
Here is a guide of installing tslab from source: https://github.com/yunabe/tslab/blob/master/docs/developing.md
I actually found the fix by looking into the docker file. The notebook needs to have a package.json to maintain dependencies and have a local node_modules.
I ran into the same issue but couldn't reproduce your solution. Would you mind to share the code of your solution, please?
I'm closing this bug because I can not reproduce it and there is no additional information. If you see a similar problem, please file another bug with details.
I followed the instructions to get tslab on my computer; I get 1:24 - Cannot find module 'tslab'.
I am using windows.
Can you please help?