Relative Content

Tag Archive for javascriptreactjswebpack

process is undefined when trying to provide environment variables to client code through webpack

I’m trying to provide access to certain environment variables in the front end code package by webpack, but process is always undefined. The application I’m working on is doing a bunch of extra stuff in the webpack configuration that I thought might be creating issues, so I wanted to see how it worked with a default create react app instance, and then compare the two. However I’m seeing the same behavior with the create react app instance (process is always undefined in the client side code).