-
Notifications
You must be signed in to change notification settings - Fork 17
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]: While trying to build or dev, the error is spawned: "Nuxtr: no package manager found" #82
Comments
Hello @Hibryda Speficing package manager will just save you the step of choosing which one, it still has to verify if package.json exists or not, and in this case, do you have a Currently Nuxtr doesn't support multi project in a monorepo. Working on this and will be available soon. "nuxtr.monorepoMode.DirectoryName": "apps/app1" |
Hello @adhamfarrag, I have One last question - how do you think, long would it take to solve this matter? I can live with using terminal, yet Nuxtr proved being useful. |
Hi @Hibryda So, the issue for you was missing monorepo configuration that I mentioned ? Just wanting to make sure I understood properly. I'm currently focusing on refactoring the project so I can implement monorepo / sub-repos use cases. But my ultimate goal here is auto detection so users have one less configuration to worry about. Another way to do is is reintroducing the same configuration but as an array where users can add multiple apps. |
Glad you find Nuxtr useful, my goal here is to empower Nuxt with the best DX for VSCode and more IDEs soon and won't hesitate to implement any feature to make it better and easier to use. For a workaround, I suggest you either use VSCode multiple windows and keyboard shortcuts to navigate between windows. Using Where am I by Anthony Fu is great to help with detecting where you are and navigating easier. |
@adhamfarrag No, the issue wasn't in the monorepo setting - I found and set it before posting here. The error remained the same. I only pointed out that without the monorepo value set, the project is not recognized by Nuxtr at all (when starting from the monorepo root level. I understand your focus on autodetection, though addition of minimal config won't hurt. Alternatively, parsing workspaces entry in monorepo's As to the workflow, at the moment I'm forcing specific windows into specific workspaces (OS workspaces - Linux) and it works just fine. A bit of muscle memory plus key shortcuts complete the work pattern. |
Duplicate of #49 |
Environment
Nuxt project info: 7:02:57 AM
What went wrong?
While trying to run dev, build or any other run option, the error pops up with contents as in the title and no further details.
Important to note - the default package manager Nuxtr is set to Yarn, yet the error appeared even without this setting set.
Also, the repo is a monorepo with tree of subdirs.
The default package manager of the subrepo is Yarn.
When running Nuxtr on a solitary Nuxt repo, with npm acting as a package manager, everything works fine.
How to reproduce it?
Build a repo similar to described.
Like:
repo_root
-> apps
---> app1
---> app2
Use Yarn as the package manager.
The text was updated successfully, but these errors were encountered: