Skip to content

Cannot read properties of undefined (reading 'message') #51

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

Closed
NullVoxPopuli opened this issue Nov 3, 2021 · 2 comments
Closed

Cannot read properties of undefined (reading 'message') #51

NullVoxPopuli opened this issue Nov 3, 2021 · 2 comments

Comments

@NullVoxPopuli
Copy link

TypeError: Cannot read properties of undefined (reading 'message')
Occurred while linting /✂️/addon/components/my-component.ts:42
    at TaggedTemplateExpression (/✂️/node_modules/eslint-plugin-hbs/lib/rules/check-hbs-template-literals.js:80:44)
    at /✂️/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (/✂️/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (/✂️/node_modules/eslint/lib/linter/node-event-generator.js:293:26)
    at NodeEventGenerator.applySelectors (/✂️node_modules/eslint/lib/linter/node-event-generator.js:322:22)
    at NodeEventGenerator.enterNode (/✂️/node_modules/eslint/lib/linter/node-event-generator.js:336:14)
    at CodePathAnalyzer.enterNode (/✂️/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:711:23)
    at /✂️/node_modules/eslint/lib/linter/linter.js:960:32
    at Array.forEach (<anonymous>)

code:

setComponentTemplate(hbs`
  my template
  `,
  MyComponent
);    
@NullVoxPopuli
Copy link
Author

oh nevermind, this same error occurs in javascript as well.
Seems the plugin just doesn't work?

@NullVoxPopuli NullVoxPopuli changed the title Typescript support? (Cannot read properties of undefined (reading 'message') Cannot read properties of undefined (reading 'message') Nov 3, 2021
@Turbo87
Copy link
Member

Turbo87 commented Dec 19, 2021

see #42

@Turbo87 Turbo87 closed this as completed Dec 19, 2021
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