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.

Ember Canary: Cannot read property 'start' of undefined

See original GitHub issue

I’m seeing the following error when building against Ember Canary:

Template Compiler Error (TemplateCompiler) in ember-basic-dropdown/templates/components/basic-dropdown-content.hbs

Cannot read property 'start' of undefined

Contents of the log file:

ERROR Summary:

  - broccoliBuilderErrorStack: TypeError: Cannot read property 'start' of undefined
    at Source.spanFor (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:8013:26)
    at BlockContext.loc (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:12810:26)
    at ElementNormalizer.ElementNode (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13189:29)
    at StatementNormalizer.normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13047:52)
    at /home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13214:27
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13213:41)
    at StatementNormalizer.normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13047:52)
    at /home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13148:27
    at Array.map (<anonymous>)
    at StatementNormalizer.Block (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13147:61)
    at StatementNormalizer.BlockStatement (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13136:23)
    at StatementNormalizer.normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13044:23)
    at /home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:12783:25
    at Array.map (<anonymous>)
    at normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:12782:62)
  - code: [undefined]
  - codeFrame: Cannot read property 'start' of undefined
  - errorMessage: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs: Cannot read property 'start' of undefined
        in /run/user/1000/broccoli-120533pyvyQF6CFynn/out-204-colocated_template_processor
        at TemplateCompiler
  - errorType: Template Compiler Error
  - location:
    - column: [undefined]
    - file: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs
    - line: [undefined]
    - treeDir: /run/user/1000/broccoli-120533pyvyQF6CFynn/out-204-colocated_template_processor
  - message: ember-basic-dropdown/templates/components/basic-dropdown-content.hbs: Cannot read property 'start' of undefined
        in /run/user/1000/broccoli-120533pyvyQF6CFynn/out-204-colocated_template_processor
        at TemplateCompiler
  - name: Error
  - nodeAnnotation: [undefined]
  - nodeName: TemplateCompiler
  - originalErrorMessage: Cannot read property 'start' of undefined
  - stack: TypeError: Cannot read property 'start' of undefined
    at Source.spanFor (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:8013:26)
    at BlockContext.loc (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:12810:26)
    at ElementNormalizer.ElementNode (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13189:29)
    at StatementNormalizer.normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13047:52)
    at /home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13214:27
    at Array.map (<anonymous>)
    at ElementNormalizer.ElementNode (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13213:41)
    at StatementNormalizer.normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13047:52)
    at /home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13148:27
    at Array.map (<anonymous>)
    at StatementNormalizer.Block (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13147:61)
    at StatementNormalizer.BlockStatement (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13136:23)
    at StatementNormalizer.normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:13044:23)
    at /home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:12783:25
    at Array.map (<anonymous>)
    at normalize (/home/james/DEV/PN/fullscreen-card-renderer/node_modules/ember-source/dist/ember-template-compiler.js:12782:62)

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:19 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
cibernoxcommented, Feb 20, 2021

Ok, it took a while but I’ve setup github actions and fixed the test suite for beta and canary.

It turns out I had @embroider/util pinned to an old version and that was the source of some of the failures. I’ve released a new patch version in which I allow that dependency to float.

Perhaps that fixes the problems some of you have experienced?

2reactions
cibernoxcommented, Feb 19, 2021

Sorry for neglecting this for so long, I’m super busy and try to concentrate my OS work on Fridays. Glad @csprocket777 found the issue.

I’m going to migrate to github actions to fix CI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ember test throw error - Cannot read property 'tagName' of ...
i have migrated ember 3.16 to 3.24 I struck on ember test error. But the app works fine Chrome 88.0 - [17 ms]...
Read more >
Ember Data cannot read property 'async' of undefined
This is a bug with Ember/Ember-data versions. Ember changed its Map implementation in Ember 1.8 beta 3 breaking any version of Ember Data ......
Read more >
typeerror: cannot read properties of undefined (reading 'route')
Another option · What version of React Router are you using? 5.3.0 · Steps to Reproduce. I click to open a modal (in...
Read more >
ember-source | Yarn - Package Manager
Ember.js is a JavaScript framework that greatly reduces the time, effort and resources needed to build any web application. It is focused on...
Read more >
Build and Authenticate an EmberJS 3 Application - Auth0
Easy to jump in to and easy to get started with, EmberJS is a great ... Ember packages have a number of methods,...
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