Closed exx8 closed 2 years ago
Limitation, you should restart dev server after switching due problems with chokidar and memory cache, anyway I can’t reproduce, without error message or more information I can’t help
Why won't the restart happen automatically @alexander-akait ?
Because it is not implemented and maybe unsafe in some cases
Because it is not implemented and maybe unsafe in some cases
Why it's unsafe? If not, why not allowing a "auto restart mode"?
example for an error:
Failed to compile.
undefined
TypeScript error in undefined(undefined,undefined):
File '/home/eran/WebstormProjects/tau_Smart_contract/src/withdraw.ts' not found.
The file is in the program because:
Matched by include pattern 'src' in '/home/eran/WebstormProjects/tau_Smart_contract/tsconfig.json' TS6053
When I swapped branch.
It is TS problem, you need to open an issue in typescript
Why it's unsafe? If not, why not allowing a "auto restart mode"?
You can change configuration and we need rerun webpack, but it is already in our roadmap for webpack-cli
But as you can see original problem from typescript
, not webpack
Code
Please paste the results of
webpack-cli info
here, and mention other relevant informationGet an error it seems there is bug in webpack-cli
Expected Behavior
Whenever I checkout a different branch or pull or push, I get bizarre compilation bug. probably because branches contain different dependencies, or the change isn't gradual, the package encounter intermediate states that causes it to bugs. I would expect that while the server is running it will listen for adding and deletion of
.git/index.lock
once those events were detected, the server should just restart or re-compile from scratch (as any other intermediate is invalid and will cause to some of the dependency to crash- for example typescript).Actual Behavior
intermediate states of the files which is caused by git checkout causes to some dependencies (such as typescript babel etc) to return weird error messages.
For Bugs; How can we reproduce the behavior?
take a repo with many commits, and different brnaches, and switch between branches
For Features; What is the motivation and/or use-case for the feature?