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

Error in findDeclaration: TypeError: Cannot read properties of undefined (reading 'ast') #183

Open
xcarpentier opened this issue Nov 21, 2024 · 1 comment

Comments

@xcarpentier
Copy link

xcarpentier commented Nov 21, 2024

Hi,

Thanks for this helpful linter package !

  • Warning message when execution the next lint
  • some context:
    • yarn workspace
    • next project
  • Version 0.2.0
  • Lint works finally
  • Here the stacktrace
Error in findDeclaration: TypeError: Cannot read properties of undefined (reading 'ast')
    at findDeclaration (ROOT/node_modules/@pandacss/eslint-plugin/dist/index.js:8088:72)
    at isLocalStyledFactory (ROOT/node_modules/@pandacss/eslint-plugin/dist/index.js:8102:16)
    at isPandaProp (ROOT/node_modules/@pandacss/eslint-plugin/dist/index.js:8131:39)
    at JSXAttribute (ROOT/node_modules/@pandacss/eslint-plugin/dist/index.js:8735:14)
    at ROOT/node_modules/eslint/lib/linter/safe-emitter.js:45:58
    at Array.forEach (<anonymous>)
    at Object.emit (ROOT/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (ROOT/node_modules/eslint/lib/linter/node-event-generator.js:293:26)
    at NodeEventGenerator.applySelectors (ROOT/node_modules/eslint/lib/linter/node-event-generator.js:322:22)
    at NodeEventGenerator.enterNode (ROOT/node_modules/eslint/lib/linter/node-event-generator.js:336:14)
@anubra266
Copy link
Collaborator

@xcarpentier Could you share what code was being linted if you don't mind? thanks

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