How can i add jsling library to cocos creator?

At the start of the code i imported the library as following
import jslinq = require(“jslinq”);
("it;s a js library downloaded from Nuget " );
but when i run the game it gives me this error

  • load script [jslinq] failed : Error: Cannot find module ‘jslinq’
    and when i try to put the library folder in the assets folder i get this error
  • load script [gulp-header] failed : Error: Cannot find module ‘gulp-header’
    I hope someone can help me

you can install jslinq by use : npm i jslinq

here is the demo of how to use it:
56473.zip (26.3 KB)

1 Like