No other way, it's just impossible to ship a library that contains agent-js to next.js - i.e. agent-js has to be installed by next to be bundled with webpack otherwise the library and app fails in production at runtime.
Fortunately, npm i does automatically install peer dependencies. Yarn doesn't though.
No other way, it's just impossible to ship a library that contains agent-js to next.js - i.e. agent-js has to be installed by next to be bundled with webpack otherwise the library and app fails in production at runtime.
Fortunately,
npm i
does automatically install peer dependencies. Yarn doesn't though.Bump agent-js at the same time.