Bud 6.19.0 error loading @roots/bud-framework/env

I updated this morning to bud 6.19 and I’m getting the following error when I run npm run dev:

BudError

✘ Could not import @roots/bud-framework/env

ℹ Stack trace

│  at Module.import (./node_modules/@roots/bud-framework/lib/module.js:144:28)
│  at async ./node_modules/@roots/bud-framework/lib/bootstrap.js:91:21
│  at async Promise.all (index 0)
│  at async bootstrap (./node_modules/@roots/bud-framework/lib/bootstrap.js:125:5)
│  at async Bud.initialize (./node_modules/@roots/bud-framework/lib/bud/index.js:116:9)
│  at async BuildDevelopmentCommand.makeBud (./node_modules/@roots/bud/lib/cli/commands/index.js:216:20)
│  at async BuildDevelopmentCommand.execute (./node_modules/@roots/bud/lib/cli/commands/build/index.js:76:9)
│  at async BuildDevelopmentCommand.validateAndExecute (./node_modules/clipanion/lib/advanced/Command.js:73:26)
│  at async Cli.run (./node_modules/clipanion/lib/advanced/Cli.js:229:24)
2 Likes

Thank you for the report, confirmed on my end and reported at https://github.com/roots/bud/issues/2523

1 Like

You can get around this error for now by forcing the build:

yarn build --force

:information_source: This is now fixed in v6.19.1

I’m getting the same error in 6.20.0.


node v21.5.0

This could happen when upgrading from a previous version. Did you try running yarn build --force?

1 Like

No I installed Sage 10, and after I ran yarn build, I get this error. I tried yarn build --force but it didn’t work.

Can you try Node v20 instead of v21?

1 Like

Now i tried node v20.5.0 but error is still there :neutral_face:

Can you try running yarn build --storage .storage and then upload a zip of the .storage directory for us?

1 Like

When I run the mentioned command, it generates a file in the .storage folder with the name bud.commands.yml with an empty array.
image
Should i share it in zip with you?

Is that the only file in the .storage directory? If it’s not, please share the zip

Ideally the directory should have contents similar to this:

.
├── browserslist-db-check.yml
├── bud.commands.yml
├── bud.resolutions.yml
└── sage
    ├── cache
    │   ├── production
    │   │   └── build
    │   │       ├── 0.pack.br
    │   │       └── index.pack.br
    │   └── swc
    │       └── plugins
    │           └── v7_macos_aarch64_0.104.36
    └── modules.json

If it doesn’t, I’ll try to find out what next steps you should take

1 Like

it have only one file with empty array.
image

I run it through WSL and now it shows this error

Your original post was being ran from Windows? WSL is a requirement for folks on Windows as noted in the docs

From WSL, what are the results of yarn build --storage .storage?

What Node version? What Yarn version? Are you running these commands from an unmodified Sage 10 installation?

Please don’t post screenshots of error messages

I run from WSL yarn build --storage .storage' It adds patth only to this node_modules/@roots/bud-tailwindcss/lib/bud/commands/index.js` and no file is added everything is the same.
I modified and configure scss but my app.scss file is empty i comment it out all my changes
node v21.5.0
yarn v1.22.21

You need to confirm whether or not you can build Sage 10 with no modifications.

It compiled when i created new sage 10 theme without doing any modification.
node v21.5.0
yarn v1.22.21

You will need to create a new topic and show your reproduction steps, including the exact changes that you made to any files, in order to get further support

1 Like