Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monorepo issues with bun #1236

Closed
Autumnlight02 opened this issue Aug 4, 2024 · 1 comment
Closed

Monorepo issues with bun #1236

Autumnlight02 opened this issue Aug 4, 2024 · 1 comment
Labels
duplicate Duplicate of another issue/PR

Comments

@Autumnlight02
Copy link

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 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
@Autumnlight02 Autumnlight02 added the s: pending triage Pending Triage label Aug 4, 2024
@Shinigami92
Copy link
Collaborator

@Shinigami92 Shinigami92 added duplicate Duplicate of another issue/PR and removed s: pending triage Pending Triage labels Aug 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Duplicate of another issue/PR
Projects
None yet
Development

No branches or pull requests

2 participants