snowack-react-ts hmr not work when packageOptions.source="remote" and "types":true #2334
-
Hello I created a fresh create-snowpack-app react-typescript after I just added:
hmr module stopped to work. Is this a bug or I am missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You're right, I can reproduce. It looks like the Skypack CDN is serving the production build of React, which doesn't have the same hooks that HMR is expecting to hook into ( We'll need support from Skypack to ship either the |
Beta Was this translation helpful? Give feedback.
-
Is @types/react is need to be installed on package.json ? |
Beta Was this translation helpful? Give feedback.
You're right, I can reproduce. It looks like the Skypack CDN is serving the production build of React, which doesn't have the same hooks that HMR is expecting to hook into (
hooks.inject
seems to be the specific one).We'll need support from Skypack to ship either the
dev
vs.production
build. Until then, this will be expected not to work. Let me catch up with the team and see how quickly we can get that added.