Command Palette

Search for a command to run...

Bug: Unable to run `yarn build` on the newest main

Bounty Amount

$100USDC

Issue Description

Steps To Reproduce


1. Clone React repo or clean the repo with `git clean -fdx`

2. Run `yarn` and `yarn build`


The current behavior


I'm getting an error while building `eslint-plugin-react-hooks.development.js`:

```

BUILDING jest-react.production.js (node_prod)

COMPLETE jest-react.production.js (node_prod)


Running: mkdir -p ./compiler/packages/babel-plugin-react-compiler/dist && echo "module.exports = require('../src/index.ts');" > ./compiler/packages/babel-plugin-react-compiler/dist/index.js

BUILDING eslint-plugin-react-hooks.development.js (node_dev)


@rollup/plugin-typescript TS7016: Could not find a declaration file for module '@babel/code-frame'. '/Users/blazejkustra/Documents/react/node_modules/@babel/code-frame/lib/index.js' implicitly has an 'any' type.

Try `npm i --save-dev @types/babel__code-frame` if it exists or add a new declaration (.d.ts) file containing `declare module '@babel/code-frame';`


error Command failed with exit code 1.

info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```


The expected behavior


Successful build


Bounty Complete

Payment processed