react2angular icon indicating copy to clipboard operation
react2angular copied to clipboard

Issue when bundling

Open shankar-n-subramanian opened this issue 4 years ago • 2 comments

Hi,

  1. Firstly, thanks for this amazing lib.

  2. The lib works all fine when run locally (development setup), however when bundled, I see there is an issue as below when run from server (tomcat).

Uncaught ReferenceError: require is not defined
    at Object.<anonymous> (vendor.34adf1bb1fb42a79e6c9.js:2)

I am sure its something got to do with webpack config or so.. Could you please let me know what is that I could be missing that it is showing up this error.

  1. Can you please share the webpack config that ensures the bundling is not borken?

Note: in development setup, I do not see this error as node takes care of rendering it.

Thanks, Shankar

shankar-n-subramanian avatar Oct 08 '21 05:10 shankar-n-subramanian