Sean Knowles
Sean Knowles•3mo ago

Deno install not working for any of our frontend projects - deno 2.0.0-rc.0+072bf5d

Node modules is not created when using Deno Install for my Sveltekit projects. They were working fine in prior releases but Deno Install has stopped working. After running deno install locally when I run deno run dev I get packages not found errors in all frontend projects. Blocked across all our development at the moment. Here's a link to our monorepo: https://github.com/zemili-group/moonrepoV3 You can find frontend projects here: apps/opsap/clients/frontend (sveltekit app) apps/opsap/clients/mobile (svelte app) apps/zemilli/frontend (sveltekit app) Steps to reproduce: - Clone the monorepo - deno install in workspace root (also ran with deno install --allow-scripts) - cd apps/zemili/frontend - deno task dev
GitHub
GitHub - zemili-group/moonrepoV3: Deno monorepo on deno deploy all ...
Deno monorepo on deno deploy all things zemil-group - zemili-group/moonrepoV3
4 Replies
bartlomieju
bartlomieju•3mo ago
Put "nodeModulesDir": "manual" in your root deno.json and everything works correctly
lcasdev
lcasdev•3mo ago
Or if you only want a node_modules in this folder, add a deno.json file in the folder with workspace: []
marvinh.
marvinh.•3mo ago
imo this should just work. There are no hints in our output that anything would be off Filed https://github.com/denoland/deno/issues/25417 to keep track of it also related, we seem to ignore postinstall scripts in workspace members in general https://github.com/denoland/deno/issues/25416
Sean Knowles
Sean KnowlesOP•3mo ago
Or if you only want a node_modules in this folder, add a deno.json file in the folder with workspace: [] I am already doing this, I have a root deno.json and have a workspace config in it. Then my workspace projects are a mix of node and deno projects if that makes sense. Ahh waaaait You mean in each project directory add an empty workspace: [] to each projects deno.json? Thanks again @marvinh. @bartlomieju for prompt help 🙂