You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> tsx ./src/index.ts
node:internal/modules/cjs/loader:1070
const err = new Error(`Cannot find module '${request}'`);
^
Error: Cannot find module '.../node_modules/@bonfida/spl-name-service/dist/index.cjs'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1070:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1063:15)
at resolveExports (node:internal/modules/cjs/loader:547:14)
at Module._findPath (node:internal/modules/cjs/loader:621:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1034:27)
at nextResolveSimple (.../node_modules/tsx/dist/register-C1urN2EO.cjs:3:942)
at .../node_modules/tsx/dist/register-C1urN2EO.cjs:2:2486
at .../node_modules/tsx/dist/register-C1urN2EO.cjs:2:1560
at resolveTsPaths (.../node_modules/tsx/dist/register-C1urN2EO.cjs:3:760)
at .../node_modules/tsx/dist/register-C1urN2EO.cjs:3:1035 {
code: 'MODULE_NOT_FOUND',
path: '.../node_modules/@bonfida/spl-name-service/package.json'
}
Node.js v20.9.0
(replaced my absolute path with ...)
The text was updated successfully, but these errors were encountered:
the
package.json
defines:but the published dist doesn't seem to include this: https://www.npmjs.com/package/@bonfida/spl-name-service?activeTab=code
resulting in me trying to use it with tsx:
(replaced my absolute path with
...
)The text was updated successfully, but these errors were encountered: