New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dev mode is currently broken #2
Comments
A couple of issues:
If you have
Should be: vite = await import("vite").then(({ createServer }) =>
createServer({
root,
logLevel: isDevelopment ? "error" : "info",
server: {
port: PORT,
hmr: {
protocol: "ws",
host: "localhost",
port: 64999,
clientPort: 64999,
},
middlewareMode: "html",
},
})
);
|
After reading some documentation, Commit 1fde536 temporarily fixes the issue. I am currently taking a look at the whole Anyways, thank you for bringing this to my notice and suggesting changes, @ivorpad ! |
@kinngh Do you know how we could get this working with Shopify's HMR fixes for Safari/Firefox? They seem to have fixed it in combination with their newest CLI upgrade and updated docs here: Shopify/shopify-app-template-node#984 I've tried putting in their hmrConfig code into your template, but it doesn't work - no front-end changes are shown until reloading page. |
@patrickbolle let me take a look at this. I'm currently down with a terrible viral fever, so it could be another few days before I'm back on track^ |
@patrickbolle transferring this to a separate issue #22 |
The
npm run dev
is currently broken leading to a lot of 4xx and 5xx errors since the dev mode implementation is half baked. The production mode runs just fine withnpm run build
followed by anpm run start
. HMR isn't supported in production mode, so any changes to React side of things need anpm run build
and refresh in the embedded app to update.The text was updated successfully, but these errors were encountered: