Git Product home page Git Product logo

Comments (8)

guillaumebrunerie avatar guillaumebrunerie commented on June 8, 2024

In my real codebase it is not enough to comment out the contents of babel.config.js, I need to remove it entirely (or rename it).

With it I get Successfully compiled 0 out of 0 components. and without it I get Successfully compiled 370 out of 406 components.

from react.

guillaumebrunerie avatar guillaumebrunerie commented on June 8, 2024

This affects the ESLint plugin as well, with a babel.config.js it silently doesnโ€™t report any errors, and removing it makes the ESLint plugin work.

from react.

poteto avatar poteto commented on June 8, 2024

Thanks for reporting. Could you share a repro app please?

from react.

guillaumebrunerie avatar guillaumebrunerie commented on June 8, 2024

@poteto The OP contains a minimal repro, which I assumed would be enough to investigate the problem. Or do you need an actual working app?

from react.

poteto avatar poteto commented on June 8, 2024

an actual app would be ideal, there are many variables when it comes to builds so it'd help us figure this out more easily. fwiw I've run the healthcheck script on a few repos with babel configs

from react.

guillaumebrunerie avatar guillaumebrunerie commented on June 8, 2024

I can reproduce it on an empty Vite app, if that helps? Although my original codebase (not open source) is a Webpack app.

$ npm create vite@latest bug-babel-config -- --template react
$ cd bug-babel-config
$ npx react-compiler-healthcheck
Successfully compiled 1 out of 1 components.
StrictMode usage found.
Found no usage of incompatible libraries
$ touch babel.config.js
$ npx react-compiler-healthcheck
Successfully compiled 0 out of 0 components.
StrictMode usage found.
Found no usage of incompatible libraries.

from react.

guillaumebrunerie avatar guillaumebrunerie commented on June 8, 2024

Here is a real project of mine with the same issue: https://github.com/guillaumebrunerie/LD55.

from react.

poteto avatar poteto commented on June 8, 2024

I'll look into it, I think this is something to do with the eslint plugin picking up your config, and since it's empty, it doesn't run the compiler

from react.

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.