Fresh Sage10 installation error: ReferenceError: global is not defined

WSL 2 Ubuntu 20.04
Sage 10
Docker + Devilbox


I have a fresh installation of Sage 10

The problem I have is during “yarn build” and “yarn dev” with the inspect window open on Chrome, I get this error: “ReferenceError: global is not defined”. All the resources gets compiled though.

Firefox: The connection to http://localhost:3001/bud/hot was interrupted while downloading the page. events.js:29

I would deeply appreciate is someone could point me to the right direction of solving this issue.

Thanks in advance!

What versions do the @roots/bud dependencies of the Sage theme have?

1 Like

These are the dependencies:

“devDependencies”: {
@roots/bud”: “6.12.0”,
@roots/bud-postcss”: “6.12.0”,
@roots/bud-sass”: “6.12.0”,
@roots/bud-tailwindcss”: “6.12.0”,
@roots/sage”: “6.12.0”,
@tailwindcss/forms”: “^0.5.4”,
@tailwindcss/typography”: “^0.5.9”,
“daisyui”: “^3.5.1”
“dependencies”: {
“swiper”: “^10.1.0”

:thinking: Does the error occur when you do not include daisyui and swiper?
The error occurs on runtime (inspect window in Chrome, if I understand this correctly).
it may well be an issue with one of those dependencies and the webpack build process.

Thank you for helping out.

The error occurs also without including daisyui and swiper. The error occurs on runtime (inspect window in Chrome), yes.

Do you have any other suggestions I could try?