Decided to try a fresh install with bootstrap 5 just to see if I could get a plain theme working without any of my mods.
roots/sage-installer has modified files:
M bin/sage
Discard changes [y,n,v,d,s,?]? n
Install of symfony/translation-contracts failed
Install of symfony/polyfill-mbstring failed
Install of symfony/translation failed
Install of psr/container failed
Install of doctrine/inflector failed
Install of symfony/polyfill-ctype failed
Install of symfony/finder failed
Install of symfony/service-contracts failed
Install of symfony/polyfill-php80 failed
Install of symfony/polyfill-php73 failed
Install of symfony/console failed
[RuntimeException]
Update aborted
npm update runs ok but npm build fails. Lots of the same bootstrap syntax errors and more stuff!
[user-name]@Naomis-MBP test-theme-bs5 % npm run build
> sage@9.0.10 build /Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5
> webpack --progress --config resources/assets/build/webpack.config.js
28% building 1/3 entries 5/10 dependencies 2/4 modulesDEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 4)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
252 │ 1: $spacer / 4,
│ ^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_variables.scss 252:6 @import
node_modules/bootstrap/scss/bootstrap.scss 11:9 @import
resources/assets/styles/autoload/_bootstrap.scss 4:9 @import
resources/assets/styles/main.scss 4:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
253 │ 2: $spacer / 2,
│ ^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_variables.scss 253:6 @import
node_modules/bootstrap/scss/bootstrap.scss 11:9 @import
resources/assets/styles/autoload/_bootstrap.scss 4:9 @import
resources/assets/styles/main.scss 4:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($grid-gutter-width, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
350 │ $container-padding-x: $grid-gutter-width / 2 !default;
│ ^^^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_variables.scss 350:23 @import
node_modules/bootstrap/scss/bootstrap.scss 11:9 @import
resources/assets/styles/autoload/_bootstrap.scss 4:9 @import
resources/assets/styles/main.scss 4:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($spacer, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
449 │ $headings-margin-bottom: $spacer / 2 !default;
│ ^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_variables.scss 449:31 @import
node_modules/bootstrap/scss/bootstrap.scss 11:9 @import
resources/assets/styles/autoload/_bootstrap.scss 4:9 @import
resources/assets/styles/main.scss 4:9 root stylesheet
DEPRECATION WARNING: Using / for division is deprecated and will be removed in Dart Sass 2.0.0.
Recommendation: math.div($input-padding-y, 2)
More info and automated migrator: https://sass-lang.com/d/slash-div
╷
690 │ $input-height-inner-quarter: add($input-line-height * .25em, $input-padding-y / 2) !default;
│ ^^^^^^^^^^^^^^^^^^^^
╵
node_modules/bootstrap/scss/_variables.scss 690:73 @import
node_modules/bootstrap/scss/bootstrap.scss 11:9 @import
resources/assets/styles/autoload/_bootstrap.scss 4:9 @import
resources/assets/styles/main.scss 4:9 root stylesheet
WARNING: 70 repetitive deprecation warnings omitted.
asset styles/main.css 263 KiB [compared for emit] (name: main) 1 related asset
asset scripts/main.js 151 KiB [compared for emit] (name: main) 1 related asset
asset scripts/customizer.js 3.76 KiB [compared for emit] (name: customizer) 1 related asset
Entrypoint main 414 KiB (589 KiB) = styles/main.css 263 KiB scripts/main.js 151 KiB 2 auxiliary assets
Entrypoint customizer 3.76 KiB (2.79 KiB) = scripts/customizer.js 1 auxiliary asset
ERROR in ../../node_modules/bootstrap/dist/js/bootstrap.esm.js 6:0-41
Module not found: Error: Can't resolve '@popperjs/core' in '/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/bootstrap/dist/js'
resolve '@popperjs/core' in '/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/bootstrap/dist/js'
Parsed request is a module
using description file: /Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/bootstrap/package.json (relative path: ./dist/js)
Field 'browser' doesn't contain a valid alias configuration
resolve as module
looking for modules in /Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/resources/assets
single file module
using description file: /Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/package.json (relative path: ./resources/assets/@popperjs/core)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/resources/assets/@popperjs/core doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/resources/assets/@popperjs/core.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/resources/assets/@popperjs/core.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/resources/assets/@popperjs/core.wasm doesn't exist
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/resources/assets/@popperjs/core doesn't exist
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/bootstrap/dist/js/node_modules doesn't exist or is not a directory
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/bootstrap/dist/node_modules doesn't exist or is not a directory
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/bootstrap/node_modules doesn't exist or is not a directory
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/node_modules doesn't exist or is not a directory
looking for modules in /Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules
single file module
using description file: /Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/package.json (relative path: ./node_modules/@popperjs/core)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/@popperjs/core doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/@popperjs/core.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/@popperjs/core.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/@popperjs/core.wasm doesn't exist
/Users/[user-name]/Websites/[website-name]/wp-content/themes/test-theme-bs5/node_modules/@popperjs/core doesn't exist
/Users/[user-name]/Websites/[website-name]/wp-content/themes/node_modules doesn't exist or is not a directory
/Users/[user-name]/Websites/[website-name]/wp-content/node_modules doesn't exist or is not a directory
looking for modules in /Users/[user-name]/Websites/[website-name]/node_modules
single file module
No description file found in /Users/[user-name]/Websites/[website-name]/node_modules/@popperjs or above
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/node_modules/@popperjs/core doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/node_modules/@popperjs/core.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/node_modules/@popperjs/core.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/Websites/[website-name]/node_modules/@popperjs/core.wasm doesn't exist
/Users/[user-name]/Websites/[website-name]/node_modules/@popperjs/core doesn't exist
/Users/[user-name]/Websites/node_modules doesn't exist or is not a directory
looking for modules in /Users/[user-name]/node_modules
single file module
No description file found in /Users/[user-name]/node_modules/@popperjs or above
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/node_modules/@popperjs/core doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/node_modules/@popperjs/core.js doesn't exist
.json
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/node_modules/@popperjs/core.json doesn't exist
.wasm
Field 'browser' doesn't contain a valid alias configuration
/Users/[user-name]/node_modules/@popperjs/core.wasm doesn't exist
/Users/[user-name]/node_modules/@popperjs/core doesn't exist
/Users/node_modules doesn't exist or is not a directory
/node_modules doesn't exist or is not a directory
@ ./scripts/autoload/_bootstrap.js 4:0-19
@ ./scripts/main.js 5:0-33
webpack compiled with 1 error
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! sage@9.0.10 build: `webpack --progress --config resources/assets/build/webpack.config.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the sage@9.0.10 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/[user-name]/.npm/_logs/2021-05-25T12_34_04_532Z-debug.log
I have actually managed to get the base theme working again but with the same issue as before, with the filepath but my main concern with that is that it won’t then work when I go to deploy the theme.