Closed ianmann56 closed 3 years ago
The issue is caused by Cypress https://github.com/cypress-io/cypress/issues/2393. An experimental workaround is adding experimental source rewriting option in your cypress configuration (usually cypress.json
)
{
"experimentalSourceRewriting": true
}
Aha, thank you @mimidotsuser!
I'm going to go ahead and close this for now (it doesn't seem like a bug in Ember), happy to reopen if I'm mistaken.
🐞 Describe the Bug
I'm using Cypress for integration/end-to-end testing. I am getting this error with the integrity of the build files when cypress makes a request to my app.
I can run this in a browser fine but as soon as I navigate to it in cypress, it fails.
🔬 Minimal Reproduction
I'm running the following command to serve the application:
Note that HOST_ONLY is my own custom environment variable that changes some of the ember environment
My dist/index.html file looks like this:
😕 Actual Behavior
I'm recieving this error in chrome:
And the page does not load.
🤔 Expected Behavior
That error not to occur and the page to load
🌍 Environment
➕ Additional Context
Environment.js