Giter Site home page Giter Site logo

The prop value with an expression type of BindExpression could not be resolved. Please file issue to get this fixed immediately. about jsx-ast-utils HOT 8 CLOSED

jsx-eslint avatar jsx-eslint commented on May 24, 2024
The prop value with an expression type of BindExpression could not be resolved. Please file issue to get this fixed immediately.

from jsx-ast-utils.

Comments (8)

tsheaff avatar tsheaff commented on May 24, 2024 5

@evcohen any update on this? Or a workaround. I'm getting the same error:

The prop value with an expression type of BindExpression could not be resolved.
  Please file issue to get this fixed immediately.
Error: The prop value with an expression type of BindExpression could not be resolved.
  Please file issue to get this fixed immediately.
    at Object.extract [as JSXExpressionContainer] (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/values/expressions/index.js:173:11)
    at getValue (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/values/index.js:48:27)
    at extractValue (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/getPropValue.js:24:12)
    at getPropValue (/Users/tsheaff/Code/private/calm/www/node_modules/jsx-ast-utils/lib/getPropValue.js:41:10)
    at /Users/tsheaff/Code/private/calm/www/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js:76:95
    at Array.some (native)
    at EventEmitter.JSXOpeningElement (/Users/tsheaff/Code/private/calm/www/node_modules/eslint-plugin-jsx-a11y/lib/rules/no-static-element-interactions.js:75:52)
    at emitOne (events.js:101:20)
    at EventEmitter.emit (events.js:191:7)
    at NodeEventGenerator.applySelector (/Users/tsheaff/Code/private/calm/www/node_modules/eslint/lib/util/node-event-generator.js:265:26)
    at NodeEventGenerator.applySelectors (/Users/tsheaff/Code/private/calm/www/node_modules/eslint/lib/util/node-event-generator.js:294:22)

It fails for any file that includes the :: syntax.

from jsx-ast-utils.

beefancohen avatar beefancohen commented on May 24, 2024 4

#43 is the outstanding PR

from jsx-ast-utils.

beefancohen avatar beefancohen commented on May 24, 2024 3

@ljharb that's okay, we don't have any BindExpression parser in this repo. It would be for the following:

::this.foo 
::console.log

getPropValue would return "this.foo.bind(this)" and "console.log.bind(console)"
getLiteralPropValue would return null

I started a branch to work on a fix, but need to update to use babylon for tests instead of acorn-jsx, which wasn't as simple as I had hoped.

from jsx-ast-utils.

beefancohen avatar beefancohen commented on May 24, 2024 2

v2.0.1 released with this patch

from jsx-ast-utils.

ljharb avatar ljharb commented on May 24, 2024

Any chance you could narrow this down to the exact code that it breaks on?

from jsx-ast-utils.

Pines-Cheng avatar Pines-Cheng commented on May 24, 2024

any update on this?

from jsx-ast-utils.

TrejGun avatar TrejGun commented on May 24, 2024

please fix this

from jsx-ast-utils.

netfishx avatar netfishx commented on May 24, 2024

please fix this

from jsx-ast-utils.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.