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

**URL:** https://discourse.roots.io/t/bud-6-19-0-error-loading-roots-bud-framework-env/26421
**Category:** bud
**Tags:** sage10
**Created:** 2023-12-14T14:05:45Z
**Posts:** 21

## Post 1 by @eavonius — 2023-12-14T14:05:45Z

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)
```

---

## Post 2 by @ben — 2023-12-14T14:24:42Z

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

---

## Post 3 by @ben — 2023-12-14T15:20:50Z

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

`yarn build --force`

---

## Post 4 by @ben — 2023-12-15T18:29:20Z

:information_source: This is now fixed in v6.19.1

---

## Post 5 by @Zaman_Haider — 2023-12-28T18:55:38Z

I’m getting the same error in 6.20.0.

 ![image](https://discourse.roots.io/uploads/default/original/2X/5/5fb26fd6644b6ea4e2f3cfb6a206dbefd547b88e.png)  
node v21.5.0

---

## Post 6 by @ben — 2023-12-28T19:08:56Z

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

---

## Post 7 by @Zaman_Haider — 2023-12-28T19:14:39Z

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.

---

## Post 8 by @ben — 2023-12-28T20:21:29Z

Can you try Node v20 instead of v21?

---

## Post 9 by @Zaman_Haider — 2023-12-28T21:17:28Z

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

---

## Post 10 by @ben — 2023-12-28T23:21:03Z

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

---

## Post 11 by @Zaman_Haider — 2023-12-29T00:19:55Z

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](https://discourse.roots.io/uploads/default/original/2X/7/7ffd0c60caef0bea3c36a0352258ceddb80b4972.png)  
Should i share it in zip with you?

---

## Post 12 by @ben — 2023-12-29T00:46:09Z

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

---

## Post 13 by @Zaman_Haider — 2023-12-29T00:49:01Z

it have only one file with empty array.  
 ![image](https://discourse.roots.io/uploads/default/original/2X/6/6285218fd688ceb0bff1c90dc0fcb2105be932f3.png)

---

## Post 14 by @Zaman_Haider — 2023-12-29T01:39:01Z

I run it through WSL and now it shows this error

 ![image](https://discourse.roots.io/uploads/default/original/2X/2/253c47744f352a09c88201f94098580eca6fda9e.png)

---

## Post 15 by @ben — 2023-12-29T01:59:36Z

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](https://discourse.roots.io/t/how-to-best-ask-questions-on-this-forum/24582)

---

## Post 16 by @Zaman_Haider — 2023-12-29T02:11:09Z

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

---

## Post 17 by @ben — 2023-12-29T02:29:07Z

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

---

## Post 18 by @Zaman_Haider — 2023-12-29T12:22:33Z

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

---

## Post 19 by @ben — 2023-12-29T13:52:18Z



---

## Post 20 by @ben — 2023-12-29T13:54:39Z

e class='quote' data-post="1" data-topic="24582"\>

 ![](https://discourse.roots.io/user_avatar/discourse.roots.io/system/48/10306_2.png)
[How to best ask questions on this forum](https://discourse.roots.io/t/how-to-best-ask-questions-on-this-forum/24582) [general](/c/general/17)

> Our intent for this forum is to provide an environment for the following: Collaborative problem-solving Information sharing This means that we want posts that ask for detailed help in solving a specific problem, or provide information that is likely to be useful to future visitors. Use a title that accurately describes the topic Detailed titles help folks that are searching for the same issue that you’re running into. Choose the relevant category and any relevant tags There are categories…

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

---

## Post 21 by @ben — 2023-12-29T13:54:50Z


