-
Notifications
You must be signed in to change notification settings - Fork 76
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
Transpiling error in Ember 4 without embroider #393
Comments
Can reproduce with a new app: ember new test-transpile --yarn
cd test-transpile
yarn
ember install @html-next/vertical-collection
ember g controller application
ember s In application controller: get items() {
return ['a', 'b'];
} In application template: <VerticalCollection @items={{this.items}} as |item|>
<div>{{item}}</div>
</VerticalCollection>
|
Reproduction at |
I found the problem. vertical-collection's customized rollup-based build is not compatible with ember 4, because it uses Line 73 in f8ba113
But in ember-cli-babel, that forces you into globals mode, meaning The comment there suggests you can set But really vertical-collection should absolutely just delete all this custom build code. The reason it works on Embroider is that Embroider already ships with a compatibility rule that completely ignores vertical-collection's custom build, because that build is fragile and locked into the classic ember-cli 3.x way of doing things: |
The below only happens when not using embroider.
Line 352 of radar.js
is being transpiled to
This causes the error
Ember is not defined
package.json
The text was updated successfully, but these errors were encountered: