Giter Site home page Giter Site logo

0.4.16 bug: Cannot read property 'referencePaths' of undefined at VariableDeclarator, lib/index.js:292:56 about babel-plugin-transform-react-remove-prop-types HOT 6 CLOSED

lencioni avatar lencioni commented on June 19, 2024 12
0.4.16 bug: Cannot read property 'referencePaths' of undefined at VariableDeclarator, lib/index.js:292:56

from babel-plugin-transform-react-remove-prop-types.

Comments (6)

adammiller avatar adammiller commented on June 19, 2024

Seeing the same with a line like this: PropTypes.oneOf(["Icon", "Button"]).isRequired. If i remove that line, the error goes away.

from babel-plugin-transform-react-remove-prop-types.

lencioni avatar lencioni commented on June 19, 2024

I haven't been able to reproduce this in the test suite, so I think it might be an interaction of multiple babel plugins. I can put up a PR that avoids this, but I am not sure what the cause is yet.

from babel-plugin-transform-react-remove-prop-types.

lencioni avatar lencioni commented on June 19, 2024

@adammiller In my local testing, #161 prevents this crash. Can you try this out locally for me?

from babel-plugin-transform-react-remove-prop-types.

maturanomx avatar maturanomx commented on June 19, 2024

Just when I modify my dependencies, new release with the fix! πŸ˜†

Awesome work!. I will try this new version. Let you know any problem πŸ‘

from babel-plugin-transform-react-remove-prop-types.

lencioni avatar lencioni commented on June 19, 2024

I found another problem, with ArrayPattern. Getting a fix ready now.

from babel-plugin-transform-react-remove-prop-types.

lencioni avatar lencioni commented on June 19, 2024

@maturanomx I published 0.4.18 with some more fixes. Please let me know if you run into any more issues!

from babel-plugin-transform-react-remove-prop-types.

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.