1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

エラー【Module not found: Error: Can't resolve '@popperjs/core'】が分からんかった

Posted at

Rails6でwebpackerを起動したときに出たエラー

% bin/webpack-dev-server
...
ERROR in ./node_modules/bootstrap/dist/js/bootstrap.esm.js
Module not found: Error: Can't resolve '@popperjs/core' in '/Users/username/hoge_app/node_modules/bootstrap/dist/js'

入れているBootstrap5とpopperjsを使っている場合、入れ方の問題のよう。
yarnでBootstrapを入れているときは確認しておきたい

% yarn add @popperjs/core

Bootstrap5でpopperjsを使うときは上のコマンドで入れてからwebpackerを立ち上げたら無事立ち上がった。

1
0
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
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?