Giter Club home page Giter Club logo

Comments (6)

jessebeach avatar jessebeach commented on June 8, 2024 2

Absolutely yes. The throw - and the logging - are just the feedback mechanism for how we do that.

That makes sense. I hadn't thought about it that way. Thanks for reopening them.

from jsx-ast-utils.

beefancohen avatar beefancohen commented on June 8, 2024

Oy- will get this added in as soon as possible, thanks for reporting 😄

from jsx-ast-utils.

jessebeach avatar jessebeach commented on June 8, 2024

@notatestuser , Fixed in version v2.2.1. This will log an error in the console, but it will no longer throw.

from jsx-ast-utils.

jessebeach avatar jessebeach commented on June 8, 2024

@ljharb are you thinking that jsx-ast-utils should proactively account for these node types?

from jsx-ast-utils.

ljharb avatar ljharb commented on June 8, 2024

Absolutely yes. The throw - and the logging - are just the feedback mechanism for how we do that.

from jsx-ast-utils.

fo-fo avatar fo-fo commented on June 8, 2024

Also happens with +=, e.g.:

let bar = 0;
<div foo={bar += 1} />

I found something like this in our codebase that was causing this message. It turned out to be a minor bug (was supposed to be +).

Would it be possible to display the file/line where the error happened when this error is logged?

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.