Skip to content

Issue when bundling #137

@shankar-n-subramanian

Description

@shankar-n-subramanian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions