Closed kenn closed 3 months ago
@kenn the ESM loader is experimental and it's just proxy to import-in-the-middle. This would be a bug with that package but if you look at issues it's like this one. If you want to use the New Relic Node.js agent I recommend you use common js format and not ESM until they can resolve this issue. I'm going to close this issue
Description
I have installed NewRelic with Remix Vite and ESM, but it fails to start the server in production build.
I don't have issues with starting the server without
--experimental-loader
for NewRelic.Expected Behavior
Start without issue
Troubleshooting or NR Diag results
N/A
Steps to Reproduce
Compare these two start modes:
Success:
Failure:
Your Environment
Additional context
We were using NewRelic before upgrading Remix to Vite / ESM.
When we completed upgrade, we gave up on NewRelic. This is our second trial thinking updated node-newrelic v12 might fix the issue, but still fails.