// This is the version of node and pnpm I use on my machine.
"engines": {
"node": "23.8.0",
"pnpm": "10.4.1"
}
- Run
pnpm install
to install all dependencies. - Run
pnpm dev
to run astro in dev mode. - You will see the following logs in the terminal.
undefined # this logs the value from import.meta.env Cannot read properties of undefined (reading 'NODE_ENV') # this is the error due to missing import.meta.env
- Done.
- Update and pin the version of
unocss
to65.4.3
.- "unocss": "66.0.0" - "unocss": "65.4.3"
- Force install all dependencies by running
pnpm install --force
. - Run
pnpm dev
and no errors. - Done.