Summary:
Installing “bootstrap-icons” package using npm/yarn brakes Bud.
Details:
I am using Sage theme with the following dependencies:
"@popperjs/core": "^2.11.6",
"@roots/bud": "^6.6.1",
"@roots/bud-eslint": "^6.6.1",
"@roots/bud-prettier": "^6.6.1",
"@roots/bud-sass": "^6.6.1",
"@roots/bud-stylelint": "^6.6.1",
"@roots/eslint-config": "^6.6.1",
"@roots/sage": "^6.6.1",
"bootstrap": "^5.2.2"
I have completly removed tailwind css and instead of it using bootstrap 5.
Now I want to add bootstrap icons but for some reason after installing package “bootstrap-icons” Bud starts complaining:
bud clean
/home/xxx/themes/dev-alpha/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
throw ex;
^
Error: Cannot find package '/home/xxx/themes/dev-alpha/node_modules/bootstrap-icons/' imported from /home/xxx/themes/dev-alpha/node_
modules/@roots/bud/lib/cli/finder.js
at new NodeError (file:///home/xxx/themes/dev-alpha/node_modules/import-meta-resolve/lib/errors.js:276:5)
at legacyMainResolve (file:///home/xxx/themes/dev-alpha/node_modules/import-meta-resolve/lib/resolve.js:307:9)
at packageResolve (file:///home/xxx/themes/dev-alpha/node_modules/import-meta-resolve/lib/resolve.js:1053:14)
at moduleResolve (file:///home/xxx/themes/dev-alpha/node_modules/import-meta-resolve/lib/resolve.js:1117:20)
at defaultResolve (file:///home/xxx/themes/dev-alpha/node_modules/import-meta-resolve/lib/resolve.js:1266:15)
at resolve (file:///home/xxx/themes/dev-alpha/node_modules/import-meta-resolve/index.js:29:12)
at file:///home/xxx/themes/dev-alpha/node_modules/@roots/bud/lib/cli/finder.js:47:24
at Array.map (<anonymous>)
at Commands.resolveExtensionCommandPaths (file:///home/xxx/themes/dev-alpha/node_modules/@roots/bud/lib/cli/finder.js:45:40)
at Commands.getRegistrationModulePaths (file:///home/xxx/themes/dev-alpha/node_modules/@roots/bud/lib/cli/finder.js:25:27) {
code: 'ERR_MODULE_NOT_FOUND'
Any idea what is going on?
It seems to me that Bud attempts to preload all the packages from node_modules directory during its run but for some reason fails with the ‘bootstrap-icons’.