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

combining with montiapm breaks HCP when using --production #40

Open
namenotrequired opened this issue Aug 1, 2023 · 1 comment
Open

Comments

@namenotrequired
Copy link

namenotrequired commented Aug 1, 2023

This bug happens only when running meteor --production but I'm not sure it happens on actual build/deploy. I stumbled upon it while looking for another bug. But I figured you'd want to know

Steps to reproduce:

$ meteor create reproduce --blaze
$ cd reproduce
$ meteor remove standard-minifier-js
$ meteor add zodern:standard-minifier-js
$ meteor add montiapm:agent
$ meteor --production

Or replace montiapm:agent with montiapm:profiler for the same result

  • Open localhost:3000 in a browser -> see the basic click app
  • Edit client/main.js e.g. to add a console.log() statement somewhere (but make sure it's a new hash)
  • wait for the browser to refresh

Result: the browser refreshes to a blank page, with an error in the console that it failed to fetch the javascript

@namenotrequired namenotrequired changed the title combining with montiapm breaks hot-code-push when using --production combining with montiapm breaks HCP when using --production Aug 1, 2023
@zodern
Copy link
Owner

zodern commented Oct 25, 2023

I've seen this issue too. The build on disk seems correct, but the running app returns a 404 for the new js file.

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

2 participants