Build fails when HMR snippet is present #3519
Unanswered
qpre
asked this question in
Troubleshooting
Replies: 0 comments
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.
-
Hello,
When using HMR in a React app with the following snippet in the entry file :
(based on : https://www.snowpack.dev/concepts/hot-module-replacement )
it works fine with
snowpack dev
butsnowpack build
fails immediately with :The build runs fine if I remove the HMR snippet. surrounding the snippet with a test on
__SNOWPACK_ENV__.MODE
does not fix the issue.How can I circumvent this issue ?
Beta Was this translation helpful? Give feedback.
All reactions