Hey everyone,
Starting to really pull my hair out on this one. So, I had fully functioning local setup on bedrock & sage 10 with Acorns 3. Today, I had to a first deployment of progress on my project and had issues with the Github sync to our dev server. So, I manually compiled everything locally and just uploaded the necessary files. To do that I ran composer install --no-dev
After running this I have officially broke my local setup and have been unable to get myself back up and running. I feel bad asking for help because I am certain its something simple I am missing, and I did try to source the Discource and Google for some resources, anything I tried was unsuccessful.
Before doing this I was running
"@roots/bud": "^6.6.10", "@roots/bud-sass": "^6.6.10", "@roots/sage": "^6.6.10"
and would run nvm use 16
then yarn dev
or yarn build
.
After I ran the deploy: composer install --no-dev
I was getting bud not a command error messages even though I did use yarn add @roots/bud --dev
during initial install.
Now, after re-installing bud it updated to the latest version of 6.7.3, so I updated my package.json file to update sage and bud-sass to match the version (saw this in other threads). So my packages.json looks like this now:
{
"name": "sage",
"private": true,
"browserslist": [
"extends @roots/browserslist-config"
],
"engines": {
"node": ">=16.0.0"
},
"type": "module",
"scripts": {
"dev": "bud dev",
"build": "bud build",
"translate": "yarn translate:pot && yarn translate:update",
"translate:pot": "wp i18n make-pot . ./resources/lang/sage.pot --include=\"app,resources\"",
"translate:update": "for filename in ./resources/lang/*.po; do msgmerge -U $filename ./resources/lang/sage.pot; done; rm -f ./resources/lang/*.po~",
"translate:compile": "yarn translate:mo && yarn translate:js",
"translate:js": "wp i18n make-json ./resources/lang --pretty-print",
"translate:mo": "wp i18n make-mo ./resources/lang ./resources/lang"
},
"devDependencies": {
"@roots/bud": "^6.7.3",
"@roots/bud-sass": "^6.7.3",
"@roots/sage": "^6.7.3"
},
"dependencies": {
"@fancyapps/ui": "^4.0.31",
"@fortawesome/fontawesome-svg-core": "^6.2.1",
"@fortawesome/free-brands-svg-icons": "^6.2.1",
"@fortawesome/free-regular-svg-icons": "^6.2.1",
"@fortawesome/free-solid-svg-icons": "^6.2.1",
"foundation-sites": "^6.7.5",
"motion-ui": "^2.0.4",
"slick-carousel": "^1.8.1",
"what-input": "^5.2.12"
}
}
I have deleted my node_modules folder and vendor folder to re-run composer install
and yarn
. After all dependencies are re-added I seem to hit 2 various issues.
- I commonly get that bud is not installed (even though I have now installed it seemingly 20+ times)
Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@roots/sage' imported from /node_modules/@roots/bud-framework/lib/module.js
So, this is where I am at now, I can’t seem to move past this error, and this is my first Sage build so I am not entirely familiar yet with some basic troubleshooting or maybe if this is common and I missing a quick fix.
If more information is needed to help troubleshoot, by all means I will provide that. Any help is greatly appreciated, I am out of ideas and stuck at this point on my project
Thank you!