Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

HMR Error: "Cannot set properties of undefined" despite hot reload working #4373

Unanswered
q3156277562 asked this question in Q&A
Discussion options

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.

You must be logged in to vote

Replies: 2 comments

Comment options

This represents the overarching framework.

image
You must be logged in to vote
0 replies
Comment options

My project uses a manifest

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /