From 83926b161d337734cda3126b6f55bcbc68b6acec Mon Sep 17 00:00:00 2001 From: Etilawin Date: Sat, 30 Jun 2018 18:38:16 +0200 Subject: [PATCH 1/2] Popper js is required If you don't add popper js you will probably have the following message while compiling with yarn This dependency was not found: * popper.js in ./node_modules/bootstrap/dist/js/bootstrap.js --- frontend/encore/bootstrap.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/encore/bootstrap.rst b/frontend/encore/bootstrap.rst index f8c67fd6405..ddc1c246d63 100644 --- a/frontend/encore/bootstrap.rst +++ b/frontend/encore/bootstrap.rst @@ -37,11 +37,12 @@ file into ``global.scss``. You can even customize the Bootstrap variables first! Importing Bootstrap JavaScript ------------------------------ -Bootstrap JavaScript requires jQuery, so make sure you have this installed: +Bootstrap JavaScript requires jQuery and popper, so make sure you have this installed: .. code-block:: terminal $ yarn add jquery --dev + $ yarn add popper --dev Next, make sure to call ``.autoProvidejQuery()`` in your ``webpack.config.js`` file: From 40118e31dcbacd9d04f0c29ed1cc06d97e147385 Mon Sep 17 00:00:00 2001 From: Etilawin Date: Sat, 30 Jun 2018 18:47:52 +0200 Subject: [PATCH 2/2] popper -> Popper.js Changed popper to Popper.js --- frontend/encore/bootstrap.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/encore/bootstrap.rst b/frontend/encore/bootstrap.rst index ddc1c246d63..a87e4d0e039 100644 --- a/frontend/encore/bootstrap.rst +++ b/frontend/encore/bootstrap.rst @@ -37,12 +37,12 @@ file into ``global.scss``. You can even customize the Bootstrap variables first! Importing Bootstrap JavaScript ------------------------------ -Bootstrap JavaScript requires jQuery and popper, so make sure you have this installed: +Bootstrap JavaScript requires jQuery and Popper.js, so make sure you have this installed: .. code-block:: terminal $ yarn add jquery --dev - $ yarn add popper --dev + $ yarn add popper.js --dev Next, make sure to call ``.autoProvidejQuery()`` in your ``webpack.config.js`` file: