Skip to content

Version 7.26.8 of babel breaks our build, due to changes of dependencies for gensync #17126

@ggruber4711

Description

@ggruber4711

💻

  • Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

Starting from yesterday our TS builds failed and we tracked it down to a change in the dependencies of this project.

    ERROR in /wrk/Webdesk-CompileOnly_release/node_modules/@types/gensync/index.d.ts
    [tsl] ERROR in /wrk/Webdesk-CompileOnly_release/node_modules/@types/gensync/index.d.ts(45,34)
          TS1005: ',' expected.
    
    ERROR in /wrk/Webdesk-CompileOnly_release/node_modules/@types/gensync/index.d.ts
    [tsl] ERROR in /wrk/Webdesk-CompileOnly_release/node_modules/@types/gensync/index.d.ts(45,47)
          TS1005: ',' expected.

The solution for us was to downgrade to 7.26.7

This is what caused the problem for us:

  • babel/core was depending on a library called gensync
  • however with version 7.26.8 the types dependency to gensync was added as a 'normal' dependency, whereas in previous version it was just a dev-dependency.

Image

Configuration file name

No response

Configuration

No response

Current and expected behavior

I am expecting a working build, without compile problems coming from dependencies

Environment

  • Babel version 7.4.28
  • Node version: 16.14.0
  • OS: MacOS
  • Monorepos: Lerna

Possible solution

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    i: regressionoutdatedA closed issue/PR that is archived due to age. Recommended to make a new issue

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions