15
6

More than 3 years have passed since last update.

【Webpack】"ERROR in ./node_modules/bootstrap/dist/js/bootstrap.esm.js 6:0-41 Module not found: Error: Can't resolve '@popperjs/core' in …"

Last updated at Posted at 2021-01-14

bootstrap が依存しているパッケージ popper がv2になった
npm で Bootstrap v5 をアップデートした際、依存関係が適切に処理されなかった。
popper.js (v1) → @popperjs/core (v2) に手動で入れ替えて解決。

  1. npm uninstall popper.js
  2. npm i @popperjs/core

※ v1 は popper.js と拡張子のドットがあるが、v2 はドットなし

15
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
15
6