ERR_MODULE_NOT_FOUND cli/commands/bud.js

I just added “@roots/bud-stylelint”: “^6.6.6”, but i’m having this error. I may have missed something. I’m quite stuck in here. I’m using Ssge 10 btw.

Error: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud/lib/cli/commands/bud.js' imported from /Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud-stylelint/lib/bud/commands/bud.stylelint.command.js
    at file:///Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud/lib/cli/commands.js:72:27
    at async Promise.all (index 0)
    at async importCommandsFromPaths (file:///Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud/lib/cli/commands.js:67:20)
    at async bud (file:///Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud/lib/cli/index.js:44:5)
/Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/yoga-layout-prebuilt/yoga-layout/build/Release/nbind.js:53
        throw ex;
        ^

TypeError: Cannot read properties of undefined (reading 'map')
    at file:///Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud/lib/cli/index.js:47:52
    at async bud (file:///Users/rocksoliddigital/Documents/Projects/RSD-Sites/rsd2023/wordpress/wp-content/themes/rsd2023/node_modules/@roots/bud/lib/cli/index.js:44:5)

Are the other bud dependencies also at ^6.6.6?

1 Like

this are the other bud dependencies

“devDependencies”: {
@roots/bud”: “6.4.5”,
@roots/bud-stylelint”: “^6.6.6”,
@roots/bud-tailwindcss”: “6.4.5”,
@roots/sage”: “6.4.5”
}

should i make the bud-stylelint 6.6.5?

oh it is working now. i have missed that part! thank you very much!

1 Like