DonJayamanne / typescript-notebook

Run JavaScript and TypeScript in node.js within VS Code notebooks with excellent support for debugging, tensorflowjs visulizations, plotly, danfojs, etc
https://marketplace.visualstudio.com/items?itemName=donjayamanne.typescript-notebook
MIT License
913 stars 41 forks source link

Error: Cannot find module 'arquero' #33

Closed ivaquero closed 3 years ago

ivaquero commented 3 years ago

Hi, this is an awesome extension. I tried the new release 2.02. However, an error message popped when I tried to import 'arquero'

Error: Cannot find module 'arquero'
Require stack:
- <repl>
node:internal/modules/cjs/loader:936
  throw err;
  ^

    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Function.b._load (/Users/integrator/.vscode/extensions/donjayamanne.typescript-notebook-2.0.2/out/extension/server/index.js:2:115314)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:94:18)
    at <Cell 1> [1, 66]
    at Script.runInContext (node:vm:139:12)
    at Script.runInNewContext (node:vm:144:17)
    at Object.runInNewContext (node:vm:298:38)
    at x (/Users/integrator/.vscode/extensions/donjayamanne.typescript-notebook-2.0.2/out/extension/server/index.js:2:113287)
ivaquero commented 3 years ago

BTW, I installed 'arquero' globally. Does the extension only support modules locally ?

DonJayamanne commented 3 years ago

Thats weird, i'm able to repro this, I'll fix this tomorrow. Not sure why its only looking locally, thanks for identifying this. For now, yes, please do use the local install of the module. Will fix this tomorrow

DonJayamanne commented 3 years ago

Looks like you cannot use arquero as a global module. It doesn't work in regular node.js repl. Hence not a bug in the extension.

Screen Shot 2021-09-06 at 23 07 35
DonJayamanne commented 3 years ago

Thanks for reporting this issue, but since i can repro this outside vscode, its not an issue in the extension. Closing as a result. Sorry I can't help here

& thanks for the feedback and trying the new version.

ivaquero commented 3 years ago

Thank you all the same.

Sent from my iPhone

On Sep 7, 2021, at 14:08, Don Jayamanne @.***> wrote:



Closed #33https://github.com/DonJayamanne/typescript-notebook/issues/33.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/DonJayamanne/typescript-notebook/issues/33#event-5263584328, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ALB2VQJHZJBLSE5DEAAEYFLUAWT7JANCNFSM5DRSHMEQ.