HMR Error: "Cannot set properties of undefined" despite hot reload working #4373
Unanswered
q3156277562
asked this question in
Q&A
Replies: 2 comments
-
This represents the overarching framework. ![]() |
Beta Was this translation helpful? Give feedback.
0 replies
-
My project uses a manifest |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have two modules: common and layout. The layout module imports and uses a utility class (e.g., from ./src/utils/performance.ts) from the common module.
A separate service (or application) then imports and uses both of these modules together. When Hot Module Replacement (HMR) is triggered, it throws the following error:
commonModule.js:180892 Uncaught TypeError: Cannot set properties of undefined (setting './src/utils/performance.ts')
The peculiar thing is that despite this error, the hot-reloaded code is actually applied and works correctly.
Beta Was this translation helpful? Give feedback.
All reactions