Hello, I get errors when use Typescript for wallet but when (at)fireblocks/ncw-js-sdk like doc of the sdk with use ts-node all versions Error: Package subpath ‘./dist/types/src/ncw-sdk’ is not defined by “exports” in /mnt/e/Vylte-finuka Wallet MPC/node_modules/(at)fireblocks/ncw-js-sdk/package.json at exportsNotFound (node:internal/modules/esm/resolve:294:10) at packageExportsResolve (node:internal/modules/esm/resolve:641:9) at resolveExports (node:internal/modules/cjs/loader:591:36) at Function.Module._findPath (node:internal/modules/cjs/loader:668:31) at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1130:27) at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/mnt/e/Vylte-finuka Wallet MPC/node_modules/(at)cspotcode/source-map-support/source-map-support.js:811:30) at Function.Module._load (node:internal/modules/cjs/loader:985:27) at Module.require (node:internal/modules/cjs/loader:1235:19) at require (node:internal/modules/helpers:176:18) at Object. (/mnt/e/Vylte-finuka Wallet MPC/mainscript.ts:2:1) { code: ‘ERR_PACKAGE_PATH_NOT_EXPORTED’ } here is the package.json of the sdk module :
{
“name”: “(at)fireblocks/ncw-js-sdk”,
“version”: “9.3.0”,
“description”: “The Fireblocks Cosigner in JavaScript”,
“keywords”: ,
“author”: “Gil Amran”,
“license”: “UNLICENSED”,
“packageManager”: “yarn(at)3.3.1”,
“main”: “dist/nodejs/ncw-sdk/index.js”,
“browser”: “dist/web/ncw-js-sdk-bundle.js”,
“types”: “dist/types/src/ncw-sdk/index.d.ts”,
“exports”: {
“types”: “./dist/types/src/ncw-sdk/index.d.ts”,
“import”: “./dist/web/ncw-js-sdk-bundle.js”,
“require”: “./dist/nodejs/ncw-sdk/index.js”
},
“files”: [
“dist”
],
“scripts”: {
“clean”: “rm -rf dist”,
“watch-web”: “webpack watch --mode development --devtool source-map”,
“build-web-bundle”: “webpack”,
“build-node-package”: “tsc --project tsconfig.node.json”,
“build”: “yarn clean && yarn build-web-bundle && yarn build-node-package”,
“lint”: “eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0”,
“format”: “prettier src --write”,
“test”: “jest”
},
“engines”: {
“node”: “>=18.0.0”
},
“dependencies”: {
“(at)fireblocks/ncw-js-infra”: “^1.0.12”,
“(at)types/jwt-decode”: “^3.1.0”,
“(at)types/node-forge”: “^1.3.4”,
“jwt-decode”: “^3.1.2”,
“node-forge”: “^1.3.1”
},
“devDependencies”: {
“(at)types/jest”: “^29.5.1”,
“(at)types/jwt-encode”: “^1.0.2”,
“(at)types/lodash”: “^4.14.200”,
“(at)typescript-eslint/eslint-plugin”: “^5.57.1”,
“typescript-eslint/parser”: “^5.57.1”,
“eslint”: “^8.38.0”,
“jest”: “^29.5.0”,
“jwt-encode”: “^1.0.1”,
“lodash”: “^4.17.21”,
“prettier”: “^3.0.0”,
“string-replace-loader”: “^3.1.0”,
“ts-jest”: “^29.1.0”,
“ts-loader”: “^9.4.4”,
“ts-mockito”: “^2.6.1”,
“typescript”: “^5.0.3”,
“webpack”: “^5.88.2”,
“webpack-cli”: “^5.1.4”
}
}
(at) = @
Maybe it’s the SDK that’s not working in Typescript or ts-node , right? Thank you for being able to help me.