Comments (8)
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.
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.
Thanks for reporting. Could you share a repro app please?
from react.
@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.
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.
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.
Here is a real project of mine with the same issue: https://github.com/guillaumebrunerie/LD55.
from react.
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)
- [spam]
- [React 19] Will React support write web components as Lit does someday?
- Bug: useCallback doesn't work sometimes inside memo component HOT 3
- [spam]
- [spam]
- [spam]
- [spam]
- [React 19] React compiler & eslint plugin giving an error to mutating values in refs that are used in JSX HOT 3
- [spam]
- [spam]
- [airline spam]
- [airline spam]
- How can I get in touch with Qatar in the UK? <<QATAR^_^Helpdesk>>
- [airline spam]
- [airline spam] HOT 1
- [Bug] : SSR Suspense renders dollar sign ($) in the dom
- [spam] HOT 1
- [spam] HOT 1
- [DevTools Bug]: CVE-2024-29415 (`ip` dependency) HOT 2
- [Compiler Todo]: (BuildHIR::lowerExpression) Handle `MetaProperty` expressions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react.