You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.