Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: 7.22.0 introduces failure to find modules #15659

Closed
1 task
raearnold opened this issue May 26, 2023 · 3 comments 路 Fixed by #15660
Closed
1 task

[Bug]: 7.22.0 introduces failure to find modules #15659

raearnold opened this issue May 26, 2023 · 3 comments 路 Fixed by #15660
Labels
i: bug i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue

Comments

@raearnold
Copy link

馃捇

  • Would you like to work on a fix?

How are you using Babel?

babel-loader (webpack)

Input code

This isn't possible due to corporate restrictions, but occurs when running any of our apps using react-bootstrap 0.33* (Bootstrap 3 support), stemming from their Glyphicon component

Configuration file name

babel.config.js

Configuration

No response

Current and expected behavior

We're getting this error in our react-bootstrap3-based app, since 7.22.0 came out

    Cannot find module 'core-js/library/fn/symbol.js' from 'node_modules/@babel/runtime-corejs2/helpers/typeof.js'

    Require stack:

      node_modules/@babel/runtime-corejs2/helpers/typeof.js

      node_modules/@babel/runtime-corejs2/helpers/interopRequireWildcard.js

      node_modules/react-bootstrap/lib/index.js

I can't post much more troubleshooting info than that as it dives into corporate code

Pinning to 7.21.5 in our app fixes it, but is not an ideal solution.

Environment

System:
OS: macOS 13.3.1
Binaries:
Node: 12.22.12 - ~/.nvm/versions/node/v12.22.12/bin/node
npm: 6.14.16 - ~/.nvm/versions/node/v12.22.12/bin/npm
Monorepos:
Lerna: 3.22.1
npmPackages:
@babel/core: ^7.12.10 => 7.22.0
jest: ^26.6.3 => 26.6.3
lerna: ^3.22.1 => 3.22.1

Note that this also happens on our CI/CD pipeline boxes, not just local development

Possible solution

Seems likely related to https://github.com/babel/babel/pull/15633/files#diff-58c78e884cf0f13228f17d48d5a5295a0f1d291d090dedd5e61a368b90af6676

Additional context

No response

@babel-bot
Copy link
Collaborator

Hey @raearnold! We really appreciate you taking the time to report an issue. The collaborators on this project attempt to help as many people as possible, but we're a limited number of volunteers, so it's possible this won't be addressed swiftly.

If you need any help, or just have general Babel or JavaScript questions, we have a vibrant Slack community that typically always has someone willing to help. You can sign-up here for an invite.

@nicolo-ribaudo
Copy link
Member

nicolo-ribaudo commented May 26, 2023

I probably introduced this regression in #15633

EDIT: you already found it :)

@nicolo-ribaudo
Copy link
Member

Working on a fix in https://github.com/babel/babel-polyfills/

@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Aug 26, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
i: bug i: regression outdated A closed issue/PR that is archived due to age. Recommended to make a new issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants