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

Make prember accept the latest FastBoot manifest schema 5 #61

Merged
merged 1 commit into from
Jul 7, 2021

Conversation

simonihmig
Copy link
Contributor

Cannot read property 'htmlFile' of undefined is what you get when running Prember w/ Embroider, due to Embroider generating a v5 manifest, which Prember is not able to understand.

Unfortunately we seem to have to make Prember aware of manifest versions, even though the intention of fastboot-schema.js is to abstract this away. But as we mangle the manifest, we can not rely on that. But the change here is not really changing that.

`Cannot read property 'htmlFile' of undefined` is what you get when running Prember w/ Embroider, due to Embroider generating a v5 manifest, which Prember is not able to understand.

Unfortunately we seem to have to make Prember aware of manifest versions, even though the intention of [fastboot-schema.js](https://github.com/ember-fastboot/fastboot/blob/429eb1d1c3d9353f3085196e71cfde416f154cba/src/fastboot-schema.js) is to abstract this away. But as we mangle the manifest, we can not rely on that. But the change here is not really changing that.
@simonihmig
Copy link
Contributor Author

Also was not able to add tests here (yet), as even the latest ember-cli-fastboot still writes out a v3 manifest. When adding Embroider support and test coverage here, this should effectively give us test coverage for the v5 path added here. But I tested it locally in an Embroider project, and this fixed the issue.

simonihmig added a commit to simonihmig/prember that referenced this pull request Nov 6, 2020
Update to v3, so `fastboot` is able to understand the v5 manifest schema (related: ef4#61). Otherwise you get `An incompatible version between `ember-cli-fastboot` and `fastboot` was found. Please update the version of fastboot library that is compatible with ember-cli-fastboot.`, so this is another stepping stone to Embroider compatibility.
This was referenced Nov 6, 2020
@ef4 ef4 merged commit b87f235 into ef4:master Jul 7, 2021
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

Successfully merging this pull request may close these issues.

2 participants