Skip to content
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

dojo.js:56 [HMR] Update check failed: Error: __webpack_require__.dj name collision. #339

Closed
ferrykranenburgcw opened this issue Jun 16, 2021 · 3 comments

Comments

@ferrykranenburgcw
Copy link

When I update a non-dojo file (in this case a Vue file) and have a running dev server with HMR active I receive this error in my browser. Because of this the page is not updated (I think). Is there a way to prevent this from happening?

dojo.js:56 [HMR] Update check failed: Error: __webpack_require__.dj name collision.

image

@chuckdumont
Copy link
Collaborator

Edit the file node_modules/dojo-webpack-plugin/lib/DojoAMDRuntimeModule.js and remove line:

		buf.push(`if (${djProp}) throw new Error("${djProp} name collision.")`);

and see if that resolves the issue.

@ferrykranenburgcw
Copy link
Author

Yes, this works. Non-dojo updates are reloaded automatically again.

@ferrykranenburgcw
Copy link
Author

Nice and so fast! When is the next release planned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants