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

Cannot read properties of undefined (reading 'Symbol(TAG_COMPUTE)') #1369

Open
wagenet opened this issue Jan 11, 2022 · 1 comment
Open

Cannot read properties of undefined (reading 'Symbol(TAG_COMPUTE)') #1369

wagenet opened this issue Jan 11, 2022 · 1 comment

Comments

@wagenet
Copy link
Contributor

wagenet commented Jan 11, 2022

global failure: TypeError: Cannot read properties of undefined (reading 'Symbol(TAG_COMPUTE)')@ 398 ms
Source:     
TypeError: Cannot read properties of undefined (reading 'Symbol(TAG_COMPUTE)')
    at validateTag (http://localhost:7357/assets/vendor.js:58940:27)
    at valueForRef (http://localhost:7357/assets/vendor.js:49853:53)
    at http://localhost:7357/assets/vendor.js:49949:40
    at http://localhost:7357/assets/vendor.js:49858:37
    at track (http://localhost:7357/assets/vendor.js:59446:7)
    at valueForRef (http://localhost:7357/assets/vendor.js:49857:44)
    at NamedArgsProxy.get (http://localhost:7357/assets/vendor.js:45044:43)
    at RangeLabelComponent.get ariaLabel [as ariaLabel] (http://localhost:7357/assets/direwolf.js:17574:21)
    at getPossibleMandatoryProxyValue (http://localhost:7357/assets/vendor.js:18979:19)
    at _getProp (http://localhost:7357/assets/vendor.js:19044:17)

This was triggered by an Ember test that failed to specify this for HBS properties:

    this.set('range', 'my-range');

    await render(
      hbs`<SelectedTimeRange @range={{range} />`
    );

Specifying it correctly as {{this.range}} solved the issue.

@NullVoxPopuli
Copy link
Contributor

I think we can improve the error message here.
Not sure what it could say, but maybe something along these lines?

Cannot read properties of undefined (reading 'Symbol(TAG_COMPUTE)')
Encountered `{{range}}`, which did not resolve to anything. 
does `this` need to be added?
Is it in the global scope?

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

No branches or pull requests

2 participants