Cannot read property 'concat' of undefined (upgrade 2.16.2)
See original GitHub issueOnly change I made was upgrade from 2.14.2 -> 2.16.2 and now when I run tests, this error causes a couple tests to fail (everything else works):
test-module-for-component.js:334 TypeError: Cannot read property 'concat' of undefined
at WrappedBuilder.compile (ember.debug.js:4042)
at ComponentLayoutBuilder.compile (ember.debug.js:3935)
at compileLayout (ember.debug.js:3916)
at Cache._emberMetal.Cache.owner [as func] (ember.debug.js:17622)
at Cache.get (ember.debug.js:25086)
at Environment.getCompiledBlock (ember.debug.js:17693)
at OutletComponentManager.layoutFor (ember.debug.js:15625)
at ember.debug.js:2662
at AppendOpcodes.evaluate (ember.debug.js:1016)
at VM.next (ember.debug.js:8190)
Which is apparently this line:
One of the tests that fails looks like this:
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
import wait from 'ember-test-helpers/wait';
moduleForComponent('content-editable', 'Integration | Component | content editable', {
integration: true
});
test('it renders', function(assert) {
this.set('text', 'Here is some text');
this.set('editing', 'true');
// Template block usage:
this.render(hbs`
{{content-editable value=text editable=editing class="d-inline-block" title="Test" id="test"}}
`);
assert.equal(this.$().html().trim(), '<div title="Test" data-test-id="content-editable" id="test" class="d-inline-block -editable ember-view" contenteditable="true" style="color: rgb(65, 65, 65);">Here is some text</div>');
})
Any tips to help debug?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
TypeError: Cannot read property 'concat' of undefined
My problem is that when i run my project it gives me an error that says: TypeError: Cannot read property 'concat' of undefined....
Read more >TypeError: Cannot read property 'concat' of undefined
Description of the problem: When I run my experiment I get an error which says, 'TypeError: Cannot read property 'concat' of undefined'.
Read more >TypeError: Cannot read property 'concat' of Undefined in JS
The "Cannot read property 'concat' of undefined" error occurs when the concat() method is called on an undefined value. To solve the error, ......
Read more >TypeError: Cannot read property 'concat' of undefined
Hey guys,. I've run into an issue that disappears if I disable jquery updater and I am trying to track down the cause....
Read more >html-webpack-plugin | Yarn - Package Manager
Features. update terser (9c7fba0 ... Prevent "cannot read property info of undefined" when reading meta ... 2.16.2. Fix bug introduced by 2.16.2. Fixes...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Closing for now (seems to have gone stale), happy to reopen if this is still an issue…
@atomkirk - Are you using ember-source (from npm) or are you consuming via Bower? If bower, you probably also want to
rm -rf bower_components.