This example case demonstrate various module interop cases in Cocos Creator, especially the NPM module use cases.
This Cocos Creator project requires some steps to setup the external modules:
-
Run
npm install
to install node modules. -
Run
npm run build-proto
to regenerate the "proto" files(used for protobufjs demo).
To validate the correctness of the project:
-
The empty scene should be launched without any error.
-
There should be no errors prompted when open this project in Visual Studio Code.