question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependencies are not resolved correctly when start vite server in child packages in monorepo

See original GitHub issue

Describe the bug

The source file request is broke when debugging. Can it be scanned recursively when it is not found in the current node_modules directory?

Reproduction

  1. using chrome devtools Sources CallStack to debug function’
  2. click jump to the next function call. It will jump to node_modules/.vite/xxx (whose source file is provide by ../../node_modules/xxx ).
  3. Vite server didn’t correctly resolve dependcies which cause request file content return 404 and can not continue debug.

System Info

vite: 2.4.2

Used Package Manager

yarn

Logs

No response

Validations

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
armenrcommented, Jul 21, 2021

+1 on this issue

Running into a similar situation using PNPM workspaces + Vite (latest) + aws-amplify-ui libraries.

It’s a big pain :-\

0reactions
bluwycommented, Mar 13, 2022

Hi I’d like to take a look at the issue, but I can’t seem to get the behaviour as described in the reproduction step. If someone can provide a simple pnpm reproduction repro, and some specific keys to look for. That would be helpful to track down the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How we configured pnpm and Turborepo for our monorepo
Intro. 12 months ago, we had 10+ npm packages in individual repositories. Things started to get inconsistent and out of hand.
Read more >
A guide through The Wild Wild West of setting up a mono repo ...
Let's start by installing Lerna as a dev dependency of your project npx lerna init ... The lerna run command will run in...
Read more >
TypeScript Monorepos with Yarn - Semaphore CI
For instance, say we have two packages, “child” and “parent”. The child is easy to compile since it has no other dependencies:
Read more >
How to Create a React Typescript Monorepo with Git ...
To start, we need a packages directory to hold the different projects in our monorepo. Your structure should begin looking like this:.
Read more >
Improve repo management with moon - LogRocket Blog
This might not be the best solution if you don't properly manage such ... commands that are run as child processes; Dependency graphs:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found