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

[Bug] Template compiler crash on 3.28.2 #19797

Closed
ef4 opened this issue Oct 22, 2021 · 6 comments · Fixed by #19798
Closed

[Bug] Template compiler crash on 3.28.2 #19797

ef4 opened this issue Oct 22, 2021 · 6 comments · Fixed by #19798

Comments

@ef4
Copy link
Contributor

ef4 commented Oct 22, 2021

🐞 Describe the Bug

The template compiler crashes with

@ember/test-helpers/setup-rendering-context.js: Cannot read property 'indexOf' of null

This is fallout from glimmerjs/glimmer-vm#1351 and glimmerjs/glimmer-vm#1352

The problem is that Glimmer declares the locals argument to be of type:

locals?: string[];

But babel-plugin-htmlbars-inline-precompile sends null.

This wasn't noticed before because for any non-strict template the locals argument used to be ignored. But now it's respected, and null is not a valid value.

🔬 Minimal Reproduction

Update a newly generated app to ember-source 3.28.2.

ef4 added a commit that referenced this issue Oct 22, 2021
czosel added a commit to projectcaluma/ember-alexandria that referenced this issue Oct 22, 2021
This pins ember-source to 3.28.1 because of
emberjs/ember.js#19797
czosel added a commit to projectcaluma/ember-alexandria that referenced this issue Oct 22, 2021
This pins ember-source to 3.28.1 because of
emberjs/ember.js#19797
derrabauke added a commit to derrabauke/ember-caluma that referenced this issue Oct 22, 2021
@simonihmig
Copy link
Contributor

simonihmig commented Oct 22, 2021

For the record: I see this also happening for latest beta and canary releases.

@Turbo87
Copy link
Member

Turbo87 commented Oct 22, 2021

@rwjblue @ef4 I think we might have to reopen this issue. rust-lang/crates.io#4073 is still showing the same bug, even with v3.28.3.

@rwjblue
Copy link
Member

rwjblue commented Oct 22, 2021

@Turbo87 ya, I messed up the backport 🤦

I've tested with local builds on 3.28.3 and 3.28.4 (before pushing the tag), once https://github.com/emberjs/ember.js/actions/runs/1373035405 is completed 3.28.4 will be published with the fix.

@simonihmig
Copy link
Contributor

@rwjblue what about beta, can we get the fix out there too? I see all addon scenarios for beta failing. (example)

Recently set up renovate for a few addons, now getting dozens of failing PRs... 🙈.🙃

@Turbo87
Copy link
Member

Turbo87 commented Oct 22, 2021

Recently set up renovate for a few addons, now getting dozens of failing PRs... 🙈.🙃

at least renovate has a "rebase all PRs" option 😅

ya, I messed up the backport 🤦

no worries, thanks for fixing so fast! ❤️

rwjblue pushed a commit that referenced this issue Oct 22, 2021
@simonihmig
Copy link
Contributor

@rwjblue thank you! 🙏

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 a pull request may close this issue.

4 participants