Closed christianvuerings closed 1 year ago
@matewilk would you be able to take a look?
Thanks @christianvuerings
Here you go @josephmarkus https://github.com/newrelic-experimental/newrelic-nextjs-integration/pull/15
The PR requires a bit more testing so it might take a few days before it's merged, but you can copy->paste bits and pieces if you need to to your repo. (might not work depending on your setup, the dynamic import in _error.tsx
file causes some issues)
@matewilk thanks! I did notice that await import
in _error.tsx
explodes on yarn build
complaining about a bunch of missing modules etc.
Changes
Replaces the New Relic
require
withimport
Why
We use
import
everywhere else in the file