tslab icon indicating copy to clipboard operation
tslab copied to clipboard

Cannot Import Module 'Ramda'

Open noamsgl opened this issue 3 years ago • 2 comments

Hi!

Love the package. Thanks.

I would like to add external packages such as ramda, however I get the following error message:

1:20 Cannot find module 'ramda' or its corresponding type declarations.

How can I make this work? Thanks!

image

noamsgl avatar Mar 02 '21 09:03 noamsgl

@noamsgl were you able to get this working at some point?

aecorredor avatar Feb 16 '23 21:02 aecorredor

Treat it like a regular .js file:

  • create a js project using npm init
  • npm install the packages
  • and put the .ipynb notebook file inside the project

It can import packages and local files just like any other js file

reset the kernel every time you update an imported file or you will get this error: unexpected error: Error: Unexpected pending rebuildTimer

KhalfaniW avatar Mar 20 '23 23:03 KhalfaniW