Skip to content

Could not resolve "@popperjs/core" #42965

@ArmandRedgate

Description

@ArmandRedgate

Steps to reproduce

Link to live example: (required)

Steps:

  1. Set up a new MUI project with the official instructions, specifically with version 5.16.2 (older versions are fine)
  2. Use a Tooltip

Current behavior

Since the update to v5.16.2, I get errors like:

Could not resolve "@popperjs/core"

in vite and

Error: Cannot find module '@popperjs/core'
Require stack:
- /root/project/web-client/node_modules/@mui/material/node/Popper/BasePopper.js
- /root/project/web-client/node_modules/@mui/material/node/Popper/Popper.js
- /root/project/web-client/node_modules/@mui/material/node/Popper/index.js
- /root/project/web-client/node_modules/@mui/material/node/Tooltip/Tooltip.js
- /root/project/web-client/node_modules/@mui/material/node/Tooltip/index.js
 ❯ Object.<anonymous> node_modules/@mui/material/node/Popper/BasePopper.js:13:13

in tests.

This may be related to #42917. I should note that my package.json does not include @mui/base.

Expected behavior

No (new) errors

Context

No response

Your environment

npx @mui/envinfo System: OS: Windows 11 10.0.22631 Binaries: Node: 21.5.0 - C:\Program Files\nodejs\node.EXE npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD pnpm: Not Found Browsers: Chrome: Not Found Edge: Chromium (126.0.2592.102) npmPackages: @emotion/react: 11.10.6 @emotion/styled: 11.10.6 @mui/core-downloads-tracker: 5.16.2 @mui/icons-material: 5.16.1 => 5.16.1 @mui/material: 5.16.2 => 5.16.2 @mui/private-theming: 5.16.2 @mui/styled-engine: 5.16.2 @mui/system: 5.16.2 @mui/types: 7.2.15 @mui/utils: 5.15.14 @mui/x-data-grid: 7.10.0 @mui/x-data-grid-pro: 7.10.0 => 7.10.0 @mui/x-internals: 7.10.0 @mui/x-license: 7.10.0 @types/react: 18.3.3 => 18.3.3 react: 18.3.1 => 18.3.1 react-dom: 18.3.1 => 18.3.1 typescript: 5.5.3 => 5.5.3

Search keywords: popperjs module mui-base

Metadata

Metadata

Assignees

Labels

duplicateThis issue or pull request already exists.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions