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.

removing dist folder causes issues with parallel lerna processes

See original GitHub issue

I don’t know if this is the right place for this, neither if this is a bug.

Additional context

I am using tsdx in a lerna monorepo. If I start all process at once via lerna run --parallel start, my create-react-app start process fails with Module not found: Can't resolve <path/to/module>.

My guess is the cleanup of the dist folder on watch mode collides with the parallel startup.

If this doesn’t belong here, feel free to close it.

Your environment

Software Version(s)
TSDX 0.10.0
TypeScript 3.6.3
Browser Chrome Version 77.0.3865.120 (Offizieller Build) (64-Bit)
npm/Yarn npm 5.8.0
Operating System Ubuntu 19.04 VM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
grimnomadcommented, Oct 17, 2019

@jaredpalmer It looks like the dist folder gets removed.

The function removing the dist folder:

https://github.com/jaredpalmer/tsdx/blob/76d7eb33e946c6dd3ebb656eabc874e392ecf012/src/index.ts#L475-L479

and the line where it is called in watch task:

https://github.com/jaredpalmer/tsdx/blob/76d7eb33e946c6dd3ebb656eabc874e392ecf012/src/index.ts#L364

@sebald Thank you for the clarification.

0reactions
grimnomadcommented, Nov 6, 2019

I have tested the watch task with the --noClean flag as introduced in #282. Now it runs without failing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting Started | Lerna
Build all the projects, then remove the remix build folder and run the build command again. You will see all the files restored...
Read more >
Interrupt all lerna --parallel tasks at once - Stack Overflow
So here's my question: how do I make sure processes started via the lerna run command with the --parallel option are all killed...
Read more >
A guide through The Wild Wild West of setting up a mono repo ...
Let's build our packages with Lerna. Run the following command in the root of our repository.
Read more >
Lerna NPM | npm.io
If you encounter any issues while using Lerna please check out our Troubleshooting document where ... Remove the node_modules directory from all packages....
Read more >
@lerna/run | Yarn - Package Manager
If for some reason you wish to opt in to the legacy task-runner implementation details (powered by p-map and p-queue ), you can...
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