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
If you have a monorepo, and you use bun it looks in the wrong location for the node modules. It looks at the current folder layer instead of going a layer up. thats why:
Steps to reproduce
bun run db:migrate create secondMigration fails
Logs
[Error: ENOENT: no such file or directory, open '/var/home/autumnlight/Documents/github/flowing/reFlowing/backend/node_modules/node-pg-migrate/templates/migration-template.js'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/var/home/autumnlight/Documents/github/flowing/reFlowing/backend/node_modules/node-pg-migrate/templates/migration-template.js'
}
System Info
[autumnlight@autumnlight]npx envinfo --system --npmPackages '{node-pg-migrate}' --binaries
Need to install the following packages:
[email protected]
Ok to proceed? (y) y
System:
OS: Linux 6.9 Fedora Linux 40.20240725.0 (Kinoite)
CPU: (16) x64 AMD Ryzen 7 5700X 8-Core Processor
Memory: 79.91 GB / 125.71 GB
Container: Yes
Shell: 5.2.26 - /bin/bash
Binaries:
Node: 20.9.0 - ~/.nvm/versions/node/v20.9.0/bin/node
Yarn: 1.22.19 - ~/.nvm/versions/node/v20.9.0/bin/yarn
npm: 10.1.0 - ~/.nvm/versions/node/v20.9.0/bin/npm
pnpm: 9.4.0 - /var~/node_modules/.bin/pnpm
bun: 1.1.21 - ~/.bun/bin/bun
### Used Module System
esm
The text was updated successfully, but these errors were encountered:
Describe the bug
If you have a monorepo, and you use bun it looks in the wrong location for the node modules. It looks at the current folder layer instead of going a layer up. thats why:
Steps to reproduce
bun run db:migrate create secondMigration
failsLogs
[Error: ENOENT: no such file or directory, open '/var/home/autumnlight/Documents/github/flowing/reFlowing/backend/node_modules/node-pg-migrate/templates/migration-template.js'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/var/home/autumnlight/Documents/github/flowing/reFlowing/backend/node_modules/node-pg-migrate/templates/migration-template.js'
}
System Info
The text was updated successfully, but these errors were encountered: