Giter Club home page Giter Club logo

Comments (12)

ondrejsevcik avatar ondrejsevcik commented on May 30, 2024 3

I've created reproduction repo https://github.com/ondrejsevcik/jsx-fragment-issue-repo

when you run npm run lint you should run into that issue as well. Hopefully this helps.

from jsx-ast-utils.

ondrejsevcik avatar ondrejsevcik commented on May 30, 2024 1

This is output of npm why jsx-ast-utils

[email protected] dev
node_modules/jsx-ast-utils
  jsx-ast-utils@"^3.2.1" from [email protected]
  node_modules/eslint-plugin-jsx-a11y
    dev eslint-plugin-jsx-a11y@"^6.5.1" from the root project
    peer eslint-plugin-jsx-a11y@"^6.5.1" from [email protected]
    node_modules/eslint-config-airbnb
      dev eslint-config-airbnb@"^19.0.4" from the root project
  jsx-ast-utils@"^2.4.1 || ^3.0.0" from [email protected]
  node_modules/eslint-plugin-react
    dev eslint-plugin-react@"^7.29.4" from the root project
    peer eslint-plugin-react@"^7.28.0" from [email protected]
    node_modules/eslint-config-airbnb
      dev eslint-config-airbnb@"^19.0.4" from the root project

from jsx-ast-utils.

ondrejsevcik avatar ondrejsevcik commented on May 30, 2024 1

Thank you for a quick fix πŸ‘πŸ½

from jsx-ast-utils.

ljharb avatar ljharb commented on May 30, 2024

What version of jsx-ast-utils is installed?

from jsx-ast-utils.

ondrejsevcik avatar ondrejsevcik commented on May 30, 2024

That would be [email protected]

from jsx-ast-utils.

ljharb avatar ljharb commented on May 30, 2024

If there's any way you could narrow down which code/file is causing the failure, that would help a ton.

(and you're sure that npm ls | grep jsx-ast-utils only returns v3.2.1?)

from jsx-ast-utils.

ljharb avatar ljharb commented on May 30, 2024

When I run npm install && npm run lint, it works fine (it has some linting errors; the config needs to extend plugin:react/jsx-runtime and set indent and react/jsx-indent to 4, plus some others).

from jsx-ast-utils.

ljharb avatar ljharb commented on May 30, 2024

although, i'm using jsx-ast-utils v3.2.2 which has some TS-related fixes; can you try that?

from jsx-ast-utils.

ondrejsevcik avatar ondrejsevcik commented on May 30, 2024

When I run npm install && npm run lint, it works fine (it has some linting errors; the config needs to extend plugin:react/jsx-runtime and set indent and react/jsx-indent to 4, plus some others).

I see those lint errors as well, but I thought it's not that important to fix them for this issue. The problem with parsing JSXFragment is still there.

although, i'm using jsx-ast-utils v3.2.2 which has some TS-related fixes; can you try that?

The reproduction repo is using also v3.2.2.

from jsx-ast-utils.

ljharb avatar ljharb commented on May 30, 2024

I’m not sure why i don’t see the parsing error in your repo, but you do. What node and npm version are you using?

from jsx-ast-utils.

ondrejsevcik avatar ondrejsevcik commented on May 30, 2024

That's indeed strange.

node: v16.8.0
npm: 7.21.0

image

from jsx-ast-utils.

ljharb avatar ljharb commented on May 30, 2024

ahh i do see it, thanks.

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.