Module import errors

Hi all!

I am writing a game tied to the blockchain, the framework gives me a generated TypeScript for gRPC

But the problem is that when I install it as an npm package and try to import something, coco does not see anything on the import path

What could be the problem?

This doc might be helpful

https://docs.cocos.com/creator/manual/en/scripting/modules/spec.html

Hello, I managed to partially solve the problem.

Now I have a problem due to the fact that the library “libsodium” is not loaded.

Is there any way to find out the version of NodeJS or TypeScript in Cocos Creator?

There is no NodeJS environment in Cocos Creator engine, you can only rely on pure JS modules, this might be an issue for libsodium