We have a game to do, but the back is already done with Graphql. And it was necessary to connect a subscription within the play-canvas game script to listen to the websoket. I wanted to know if it is somehow possible to import a package into the ide and continue working on the scripts?
Hi @rhomE and welcome,
You can’t use NPM modules in the PlayCanvas editor. But you can load ES6 bundled modules, here is one way to do this:
1 Like
Alternatively, you can browserify the node module you want to use via the steps: https://www.webtips.dev/use-npm-modules-in-your-browser
3 Likes