Skip to content

[Bug]: path.requeueComputedKeyAndDecorators is not a function #16694

@dep

Description

@dep

💻

  • Would you like to work on a fix?

How are you using Babel?

Other (Next.js, Gatsby, vue-cli, ...)

Input code

"devDependencies": {
"@apollo/react-testing": "^3.1.2",
"@babel/core": "7.24.9",
"@babel/eslint-parser": "7.25.1",
"@babel/plugin-proposal-optional-chaining": "7.21.0",
"@babel/preset-react": "7.24.7",
"@babel/preset-typescript": "^7.24.7",
}

Configuration file name

No response

Configuration

module.exports = {
  presets: [
    "@babel/preset-env",
    "@babel/preset-react",
    "@babel/preset-typescript",
  ],
  plugins: ["@babel/plugin-proposal-optional-chaining"],
};

Current and expected behavior

Current:

 FAIL  src/components/edit_revision/EditRevisionPage.test.js
  ● Test suite failed to run

    TypeError: /Box/applications/react/legacy/invoca-tags/src/components/edit_revision/EditRevisionPage.test.js: path.requeueComputedKeyAndDecorators is not a function

      at PluginPass.call (../../../../node_modules/@babel/traverse/src/visitors.ts:409:12)
      at PluginPass.call (../../../../node_modules/@babel/plugin-transform-async-generator-functions/src/index.ts:74:12)

Expected: Tests pass

Environment

  System:
    OS: macOS 14.5
  Binaries:
    Node: 20.4.0 - ~/.nvm/versions/node/v20.4.0/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 9.7.2 - ~/.nvm/versions/node/v20.4.0/bin/npm
  npmPackages:
    jest: 27.5.1 => 27.5.1
    webpack: 5.76.0 => 5.76.0

Possible solution

No response

Additional context

I've been chasing down Babel-related errors all day today. A couple others that I've been struggling with:

path.requeueComputedKeyAndDecorators is not a function

and

value.ensureFunctionName is not a function

All coming from babel libs. I'm assuming this is related to the 7.25.1 tag that was released just yesterday.

fix: ensureFunctionName may be undefined

Not sure why things are wonky today.

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

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions