You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error is occurring. The error happens regardless of the version, and it has been occurring since @amplitude/plugin-session-replay-browser version 1.6.1. Downgrading to other versions doesn't resolve the issue. But remove that, I can build nextjs project.
info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
info - Linting and checking validity of types
info - Creating an optimized production build
info - Compiled successfully
info - Collecting page data .Error [ERR_REQUIRE_ESM]: require() of ES Module /Users/a123123/WebstormProjects/Client-HomePage-Next/node_modules/@medv/finder/finder.js from /Users/a123123/WebstormProjects/Client-HomePage-Next/node_modules/@amplitude/session-replay-browser/lib/cjs/hooks/click.js not supported.
Instead change the require of finder.js in /Users/a123123/WebstormProjects/Client-HomePage-Next/node_modules/@amplitude/session-replay-browser/lib/cjs/hooks/click.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (/Users/a123123/WebstormProjects/Client-HomePage-Next/node_modules/@amplitude/session-replay-browser/lib/cjs/hooks/click.js:6:16) {
code: 'ERR_REQUIRE_ESM'
}
Steps to Reproduce
make nextjs project
setup @amplitude/plugin-session-replay-browser in _app.tsx
Expected Behavior
nextjs project build
Current Behavior
An error is occurring. The error happens regardless of the version, and it has been occurring since @amplitude/plugin-session-replay-browser version 1.6.1. Downgrading to other versions doesn't resolve the issue. But remove that, I can build nextjs project.
Steps to Reproduce
Environment
The text was updated successfully, but these errors were encountered: