Elasticsearch APM with nodejs agent failing with error

Hi Abdul,

Yes I can help you, Our agent is not coupled to any frameworks. So it would work even if your application is built using Angular or React, It does not matter.

As I already mentioned, I believe the issue you are having is related to bundling and I would like you to test with inserting script tags in HTML directly instead of bundling to isolate the issue.

https://www.elastic.co/guide/en/apm/agent/js-base/3.x/getting-started.html#using-script-tags

Could you please test with above approach and let us know if you see any problems? Also if possible please share your webpack config, Would be easier for me to figure out the problem.

Thanks,
Vignesh