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
The package doesn't contain a dist directory. I had to cd into the package in node_modules and npm run build to make it work.
Error: Cannot find module '/Users/ivor/Developer/experiments/ts-node-bus/node_modules/@node-ts/bus-redis/dist/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:353:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/Users/ivor/Developer/experiments/ts-node-bus/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/ivor/Developer/experiments/ts-node-bus/src/bus.ts:7:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Module.m._compile (/Users/ivor/Developer/experiments/ts-node-bus/node_modules/ts-node/src/index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Object.require.extensions.<computed> [as .ts] (/Users/ivor/Developer/experiments/ts-node-bus/node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18) {
code: 'MODULE_NOT_FOUND',
path: '/Users/ivor/Developer/experiments/ts-node-bus/node_modules/@node-ts/bus-redis/package.json',
requestPath: '@node-ts/bus-redis'
The text was updated successfully, but these errors were encountered:
The package doesn't contain a
dist
directory. I had tocd
into the package in node_modules andnpm run build
to make it work.The text was updated successfully, but these errors were encountered: