Skip to content

Bug: Unable to run yarn build on the newest main #34934

@blazejkustra

Description

@blazejkustra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: UnconfirmedA potential issue that we haven't yet confirmed as a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions