Skip to content
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

Build and chunk files #35

Open
Man4x opened this issue Oct 20, 2022 · 0 comments
Open

Build and chunk files #35

Man4x opened this issue Oct 20, 2022 · 0 comments

Comments

@Man4x
Copy link

Man4x commented Oct 20, 2022

First, thank you for all of this.
I'm using this module for customizing the Hyva Reach Checkout and since it runs great in local dev mode , I "npm run build" to test it online. A new react-checkout.js and a bunch of chunks.js were created then, but as the react-checkout.js is perfectly available in the Magento static directory, chunks files loading lead to 404s.
As far as I understood, the react-checkout.js file is loaded asynchronously from the block template but inside it, chunks are expected to be in the ../../view/frontend/web/js/[name].chunk.js directory, as set in the config-override.js
Is there any simple way to fix this ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant