process.env
is undefined and causes application-crashing error in non-node runtime
#92
Labels
bug report 🦗
Issue is probably a bug, but it needs to be checked
bundler: webpack 📦
Issue is related to webpack bundler
cat: modules aliasing 🔗
Issue related to modules aliasing
needs: complete repro 🖥️
Issue need to have complete repro provided
Environment
Description
In a non-node environment,
process.env
is undefined thus causingpackages/shared/src/findPackageJSON.ts
L13 to throw an undefined error which leads to the application crashing.Reproducible Demo
https://github.com/AsukaCHikaru/wyw-in-js-vite-env-issue
The text was updated successfully, but these errors were encountered: