elasticpress-react
elasticpress-react copied to clipboard
Component won't load
Describe the bug
When the react script starts there is this problem factoryWithTypeCheckers.js:172 Uncaught ReferenceError: process is not defined
Steps to Reproduce
pull version "@10up/elasticpress-react": "^2.1.1" and try to load the components and the error will terminate the process.
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
I think I have the similar issue. I'm using webpack to build my front-end code. If I set { mode: "production" } in my webpack.config.js, I don't get this issue. Unfortunately, this means I can't use source maps and so on...