@aksvitpav

Как установить mdbootstrap jquery в Laravel 5.8?

Создал новый проект Laravel. Пытаюсь установить MDBootstrap.
Использую команды:
npm i mdbootstrap
npm i node-waves


Файл resources\sass\app.scss добавил
// MDBootstrap
@impоrt '~mdbootstrap/scss/mdb';


Файл resources\js\bootstrap.js добавил
require('node-waves');
require('mdbootstrap');


В итоге получаю ошибку при компиляции через npm run dev:
Текст ошибки

WARNING Compiled with 1 warnings 10:29:48

warning in ./resources/js/bootstrap.js

Module not found: Error: Can't resolve 'mdbootstrap' in 'E:\LARAGON\www\remont\resources\js'

Asset Size Chunks Chunk Names
/css/app.css 452 KiB /js/app [emitted] /js/app
/js/app.js 1.4 MiB /js/app [emitted] /js/app
fonts/vendor/mdbootstrap/roboto/Roboto-Bold.eot?ecdd509cadbf1ea78b8d2e31ec52328c 20.5 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Bold.ttf?e31fcf1885e371e19f5786c2bdfeae1b 125 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Bold.woff2?39b2c3031be6b4ea96e2e3e95d307814 48.8 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Bold.woff?dc81817def276b4f21395f7ea5e88dcd 61.4 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Light.eot?a990f611f2305dc12965f186c2ef2690 20.4 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Light.ttf?46e48ce0628835f68a7369d0254e4283 124 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Light.woff2?69f8a0617ac472f78e45841323a3df9e 48.2 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Light.woff?3b813c2ae0d04909a33a18d792912ee7 60.9 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Medium.eot?4d9f3f9e5195e7b074bb63ba4ce42208 20.9 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Medium.ttf?894a2ede85a483bf9bedefd4db45cdb9 125 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Medium.woff2?574fd0b50367f886d359e8264938fc37 49 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Medium.woff?fc78759e93a6cac50458610e3d9d63a0 61.5 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Regular.eot?30799efa5bf74129468ad4e257551dc3 20.8 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Regular.ttf?df7b648ce5356ea1ebce435b3459fd60 123 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Regular.woff2?2751ee43015f9884c3642f103b7f70c9 48.1 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Regular.woff?ba3dcd8903e3d0af5de7792777f8ae0d 60.3 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Thin.eot?dfe56a876d0282555d1e2458e278060f 21.2 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Thin.ttf?94998475f6aea65f558494802416c1cf 125 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Thin.woff2?954bbdeb86483e4ffea00c4591530ece 47.4 KiB [emitted]
fonts/vendor/mdbootstrap/roboto/Roboto-Thin.woff?7500519de3d82e33d1587f8042e2afcb 60.2 KiB [emitted]
images/vendor/mdbootstrap/overlays/01.png?0a3750e6fdb29fcd632e627e2fc34dde 211 bytes [emitted]
images/vendor/mdbootstrap/overlays/02.png?351bd6828f980ec53eb3a1ad0d3b1e31 213 bytes [emitted]
images/vendor/mdbootstrap/overlays/03.png?e438ea2aabdb1087dc4f6fea5f6518e7 209 bytes [emitted]
images/vendor/mdbootstrap/overlays/04.png?0284d042a6c29213aaa1979528195b7f 211 bytes [emitted]
images/vendor/mdbootstrap/overlays/05.png?5014f9cce435c71ade6395a5ed0c50e7 213 bytes [emitted]
images/vendor/mdbootstrap/overlays/06.png?21612b9d3e9d84e7e8761a2caf43bc65 211 bytes [emitted]
images/vendor/mdbootstrap/overlays/07.png?f8da0281186df8f17f732a2a22aa0efa 215 bytes [emitted]
images/vendor/mdbootstrap/overlays/08.png?975f7e0074400e7561ba2124604aacf2 146 bytes [emitted]
images/vendor/mdbootstrap/overlays/09.png?fd19309a1932b475138799acc0b75a82 137 bytes [emitted]
images/vendor/mdbootstrap/svg/arrow_left.svg?11911410dca2de148f30954eb2fd5eab 218 bytes [emitted]
images/vendor/mdbootstrap/svg/arrow_right.svg?8ef6a08cdc1154920165680a4edde771 217 bytes [emitted]

WARNING in ./resources/js/bootstrap.js
Module not found: Error: Can't resolve 'mdbootstrap' in 'E:\LARAGON\www\remont\resources\js'
@ ./resources/js/bootstrap.js
@ ./resources/js/app.js
@ multi ./resources/js/app.js ./resources/sass/app.scss


Почему? Что не верно? Подскажите, пожалуйста. Только начинаю осваивать Laravel!
  • Вопрос задан
  • 185 просмотров
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы