Hello,
Does somebody has experience with using the Laravel Mix with OC?
My friend still has an old iPhone with iOS12 on it and I want him to be able to checkout our new project.
When I just use npx mix
, then I get following error:
ERROR in ./modules/backend/assets/vendor/bootstrap/bootstrap.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
71 │ @import "bootstrap/scss/variables-dark"; // Required
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
modules/backend/assets/vendor/bootstrap/bootstrap.scss 71:9 root stylesheet
at processResult (/Users/user/code/project/git/project_oc/octobercms-files/node_modules/webpack/lib/NormalModule.js:758:19)
at /Users/user/code/project/git/project_oc/octobercms-files/node_modules/webpack/lib/NormalModule.js:860:5
at /Users/user/code/project/git/project_oc/octobercms-files/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /Users/user/code/project/git/project_oc/octobercms-files/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/Users/user/code/project/git/project_oc/octobercms-files/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/Users/user/code/project/git/project_oc/octobercms-files/node_modules/sass-loader/dist/index.js:69:5)
ERROR in ./modules/backend/assets/vendor/bootstrap/bootstrap-lite.scss
Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Can't find stylesheet to import.
╷
32 │ @import "bootstrap/scss/variables-dark"; // Required
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
modules/backend/assets/vendor/bootstrap/bootstrap-lite.scss 32:9 root stylesheet
at processResult (/Users/user/code/project/git/project_oc/octobercms-files/node_modules/webpack/lib/NormalModule.js:758:19)
at /Users/user/code/project/git/project_oc/octobercms-files/node_modules/webpack/lib/NormalModule.js:860:5
at /Users/user/code/project/git/project_oc/octobercms-files/node_modules/loader-runner/lib/LoaderRunner.js:400:11
at /Users/user/code/project/git/project_oc/octobercms-files/node_modules/loader-runner/lib/LoaderRunner.js:252:18
at context.callback (/Users/user/code/project/git/project_oc/octobercms-files/node_modules/loader-runner/lib/LoaderRunner.js:124:13)
at Object.loader (/Users/user/code/project/git/project_oc/octobercms-files/node_modules/sass-loader/dist/index.js:69:5)
2 ERRORS in child compilations (Use 'stats.children: true' resp. '--stats-children' for more details)
webpack compiled with 4 errors
However, I easily can comment out the upper part of the webpack.mix.js file, that takes concern of OC files and just compile my own files below. Later I reset the comments.
Is there a better solution?