Hi, I’m following this topic to import web3 module (installed by npm install --save web3
) into a project made by Creator v3.8.2
https://docs.cocos.com/creator/manual/en/scripting/modules/example.html#case-4-using-web3
This is the ts code to import it
import * as web3 from 'web3/dist/web3.min.js';
....
console.log(`@@@@@@ web3 // `, web3);
I get this error and have no clue on how to fix
Error: Error: Subpath "./dist/web3.min.js" is not exported in package file:///C:/ProjectName/node_modules/web3/package.json
Anyone has the same problem & resoved it? Please leave me a hint to fix it. Thanks!