Temporary fix for graphNew error in local development #2006
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Partially resolves #1913
Fixes the below error with a temporary work-around:
Development notes
There are some compatibility issues with workerize-loader and Webpack v5 which is affecting the local dev env. As @jitu5 and I discussed, this issue happened mostly after node18 upgrade. As Jitendra pointed out to these commits
Also a similar issue - developit/workerize-loader#77 , for which some are suggesting having a simple own library. Since this issue happens in dev env, I felt we opt for a less effort work-around. Further looking at the fix, I realized this might be an issue with cache.
What does this PR do -
Introduces a script -
"start:dev": "rm -rf node_modules/.cache && npm start",
at package.json which can be used in local development instead of doingnpm start
. Now developers can make use of this script by runningnpm run start:dev
which helps removing the cache and resolving the error.QA notes
npm run start:dev
in local should not throw the above errorChecklist
RELEASE.md
file