sentry-javascript icon indicating copy to clipboard operation
sentry-javascript copied to clipboard

nextjs-app-dir (canary) Test Failed

Open github-actions[bot] opened this issue 1 year ago • 1 comments

Canary tests failed: https://github.com/getsentry/sentry-javascript/actions/runs/9239191102

github-actions[bot] avatar May 23 '24 00:05 github-actions[bot]

pnpm test:test-build && pnpm test:prod && pnpm test:dev

> [email protected] test:test-build /home/runner/work/sentry-javascript/sentry-javascript/dev-packages/e2e-tests/test-applications/nextjs-app-dir
> pnpm ts-node --script-mode assert-build.ts

/home/runner/work/sentry-javascript/sentry-javascript/dev-packages/e2e-tests/test-applications/nextjs-app-dir/assert-build.ts:12
  assert.doesNotMatch(buildStderr, /Import trace for requested module/); // This is Next.js/Webpack speech for "something is off"
         ^
AssertionError [ERR_ASSERTION]: The input was expected to not match the regular expression /Import trace for requested module/. Input:

' ⚠ Invalid next.config.js options detected: \n' +
  ' ⚠     Expected object, received boolean at "experimental.serverActions"\n' +
  ` ⚠     Unrecognized key(s) in object: 'appDir' at "experimental"\n` +
  ' ⚠ See more info here: [https://nextjs.org/docs/messages/invalid-next-config\n](https://nextjs.org/docs/messages/invalid-next-config/n)' +
  ' ⚠ Compiled with warnings\n' +
  '\n' +
  './node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@playwri_5uxqmb6z24536sbgmuqrj46kpa/node_modules/next/dist/compiled/react/cjs/react.react-server.production.js\n' +
  'A Node.js API is used (process.emit at line: 289) which is not supported in the Edge Runtime.\n' +
  'Learn more: [https://nextjs.org/docs/api-reference/edge-runtime\n](https://nextjs.org/docs/api-reference/edge-runtime/n)' +
  '\n' +
  'Import trace for requested module:\n' +
  './node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@playwri_5uxqmb6z24536sbgmuqrj46kpa/node_modules/next/dist/compiled/react/cjs/react.react-server.production.js\n' +
  './node_modules/.pnpm/[email protected]_@[email protected]_@[email protected]_@playwri_5uxqmb6z24536sbgmuqrj46kpa/node_modules/next/dist/compiled/react/react.react-server.js\n' +

Seems like we have to change the config?

AbhiPrasad avatar May 24 '24 10:05 AbhiPrasad