question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'concat' of undefined (upgrade 2.16.2)

See original GitHub issue

Only 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:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rwjbluecommented, Feb 1, 2018

Closing for now (seems to have gone stale), happy to reopen if this is still an issue…

1reaction
rwjbluecommented, Nov 5, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found