Announcement

Collapse
No announcement yet.

How To Use npm Libraries Within EFS Studies

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To Use npm Libraries Within EFS Studies

    Hi, I'm wishing to add some npm libraries to my EFS code to help with some tasks.

    I created a node.js project and added the libraries with npm install ...
    Does anybody know how I can then import the npm library into my EFS study?

    I have tried

    PHP Code:
    import Observable from '...; 
    which gives the error
    import declarations may only appear at top level of a module
    I have also tried

    PHP Code:
    var Observable = require('...'); 
    which gives the error
    require is not defined
    So is using npm libraries even possible within EFS studies? and if so what is the proper way to import the library?

    Thanks
Working...
X