-
Notifications
You must be signed in to change notification settings - Fork 638
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
The development server doesn't reflect node_modules updates done after running the server at least once #10808
Comments
Seems like both this and #10809 are manifestations of this webpack issue: webpack/webpack#11612 The comment at the end supplies a resolution - although one thing that applying this resolution will do is slow down the development server as currently webpack is using updates to package.json files and yarn.lock as the source of truth for busting the cache (as an optimization as node_modules can be very large). I am happy to make this change (with an optional configuration flag for local packages), but would want others to test out the performance impact it has on their machines before merging. |
My guess would be that the majority of the team and most of the time doesn't need to link KDS. Would it be possible to have the symlinks settings values set via environment variables, for example? So that every developer could change the value to whatever is needed depending on their current tasks. |
Or rather, just having one environment variable, |
@rtibbles Also posted what looks to be a possible alternative to using |
Observed behavior
When Kolibri is run with
devserver
ordevserver-hot
, changes made to a package in kolibri/node_modules done after running the server at least once don't propagate to the app. This seems to be the main cause of problems with linking the KDS package locally to Kolibri described in #10809 (however can be reproduced separately outside of linking context as demonstrated below)Expected behavior
devserver
/devserver-hot
propagates node_modules updates to the appUser-facing consequences
None
Steps to reproduce
yarn run devserver
/yarn run devserver-hot
yarn run devserver
/yarn run devserver-hot
Comments
yarn run build
andyarn run python-devserver
, updates propagate as expectedContext
The text was updated successfully, but these errors were encountered: