-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
HMR Error: "Cannot set properties of undefined" despite hot reload working #4373
-
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
Replies: 2 comments
-
This represents the overarching framework.
imageBeta Was this translation helpful? Give feedback.
All reactions
-
My project uses a manifest
Beta Was this translation helpful? Give feedback.