tiny-warning: `process` doesn't exist in the browser
In index.ts
, it’s saying that process
doesn’t exist in the browser. There should be a check here to make sure typeof process !== 'undefined'
.
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 2
- Comments: 34 (10 by maintainers)
Not sure what should be the default value though, production or development. I would probably go with development like in node, since process.env was borrowed from node anyways.
process
should not exist in esm modules used in browsersPretty sure react’s browser build doesn’t require user to set this up, because they have a version that can run directly in the browser, how do they do it?