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

[BUG]: yarn compatibility #145

Open
theoephraim opened this issue Oct 23, 2024 · 2 comments
Open

[BUG]: yarn compatibility #145

theoephraim opened this issue Oct 23, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@theoephraim
Copy link
Member

dmno version

latest

Steps to reproduce

report of yarn 2 not working as expected, but need to dig in deeper

What is expected?

it should work normally

What is actually happening?

not working :(

System Info

No response

Any additional comments?

this is likely because of assumptions around node_modules folder and yarn having it's own ideas about how to do things...

@theoephraim theoephraim added the bug Something isn't working label Oct 23, 2024
@Inlustra
Copy link

Inlustra commented Nov 4, 2024

Tad disappointed in doing a yarn dlx init myself.
I was under the impression that - according to the docs - each monorepo package would be getting its own .dmno directory.

....
? Can we move out/workspaces/scheduling-ops/.env? yes
✨ moved out/workspaces/scheduling-ops/.env to .dmno folder
   📂 /Internal/repo/.dmno/.env
? Can we move workspaces/comms-platform/.env.dev? yes
✨ moved workspaces/comms-platform/.env.dev to .dmno folder
   📂 /Internal/repo/.dmno/.env.dev
? Can we move workspaces/comms-platform/.env.prod? yes
✨ moved workspaces/comms-platform/.env.prod to .dmno folder
....

My fault, I should have realised this looking at this line: 📂 /Internal/repo/.dmno/.env.dev
Anywho, I have a long road ahead of me re-setting up all of the .env files.
The reason I bring this up here, is because I figured I'd get started on the .dmnos for the individual repositories, but running it I'm getting:

❯ yarn dlx dmno init

➤ YN0000: ┌ Resolution step
➤ YN0032: │ fsevents@npm:2.3.3: Implicit dependencies on node-gyp are discouraged
➤ YN0000: └ Completed in 3s 293ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0068: │ @graphql-codegen/cli ➤ dependencies ➤ ts-node: No matching package in the dependency tree; you may not need this rule anymore.
➤ YN0068: │ @graphql-tools/code-file-loader ➤ dependencies ➤ ts-node: No matching package in the dependency tree; you may not need this rule anymore.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed
➤ YN0000: ┌ Link step
➤ YN0007: │ core-js-pure@npm:3.39.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.21.5 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3s 101ms
➤ YN0000: Done with warnings in 6s 534ms

┌─╮╭─┬─╮╭─┬┐╭─╮ ┌─╮╭─┐┌┬┐ ╭───────────╮ 
│╷││╷│╷││╷│││╷│ ││││ ┤│││ │ ● ● │ ●   │ 
│╵│││╵││││╵││╵│ ││││ ┤│╵│ │ ● ● │   ● │ 
└─╯└┴─┴┘└┴─╯╰─╯○└─╯╰─┘╰─╯ ╰───────────╯ 
▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂▂

- Package manager: yarn
- Workspace root path: /Internal/repo
- Monorepo mode: ENABLED (0 child packages)

UNCAUGHT EXCEPTION: unable to detect which package you are in... whats happening?
UNCAUGHT EXCEPTION: Error: unable to detect which package you are in... whats happening?
    at DmnoCommand.<anonymous> (file:///tmp/xfs-8d21e654/dlx-28290/node_modules/dmno/src/cli/commands/init.command.ts:69:11)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at DmnoCommand.parseAsync (/tmp/xfs-8d21e654/dlx-28290/node_modules/dmno/node_modules/commander/lib/command.js:1092:5)
    at file:///tmp/xfs-8d21e654/dlx-28290/node_modules/dmno/src/cli/cli-executable.ts:57:3

yarn 3.5.0
node v18.17.1

@theoephraim
Copy link
Member Author

@Inlustra - sorry for the trouble. I'll be talking a look at yarn bugs this afternoon! In theory, it should do a decent job of moving things around and scaffolding out your config files.

Feel free to hop in the discord https://chat.dmno.dev/ and can help debug as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants