Skip to content

fix(vite): avoid version-specific plugin return type #2151

fix(vite): avoid version-specific plugin return type

fix(vite): avoid version-specific plugin return type #2151

Triggered via pull request May 11, 2026 19:26
Status Failure
Total duration 5m 9s
Artifacts 1

checks.yml

on: pull_request
Build packages
37s
Build packages
Formatting check
22s
Formatting check
Typing check
49s
Typing check
Unit Tests
26s
Unit Tests
Linter check
58s
Linter check
Upload Artifacts
Upload Artifacts
Matrix: test-integration
Fit to window
Zoom out
Zoom in

Annotations

16 errors, 13 warnings, and 4 notices
Integration Tests (Node 24, OS windows-latest)
Process completed with exit code 1.
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite8 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite8/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite7 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite7/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite6 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite6/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
Integration Tests (Node 18, OS windows-latest)
Process completed with exit code 1.
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite8 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite8/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite7 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite7/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite6 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite6/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
Integration Tests (Node 22, OS windows-latest)
Process completed with exit code 1.
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite8 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite8/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite7 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite7/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite6 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite6/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
Integration Tests (Node 20, OS windows-latest)
Process completed with exit code 1.
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite8 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite8/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite7 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite7/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
fixtures/vite-type-compat.test.ts > sentryVitePlugin type compatibility > is compatible with vite6 defineConfig plugins: packages/integration-tests-next/fixtures/vite-type-compat.test.ts#L100
AssertionError: expected [ Array(1) ] to deeply equal [] - Expected + Received - [] + [ + "File 'D:/a/sentry-javascript-bundler-plugins/sentry-javascript-bundler-plugins/packages/integration-tests-next/fixtures/vite6/sentry-vite-plugin-type-compat.mts' not found. + The file is in the program because: + Root file specified for compilation", + ] ❯ fixtures/vite-type-compat.test.ts:100:66
Formatting check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Build packages
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020, actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Unit Tests
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Typing check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Linter check
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 18, OS ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 22, OS ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 24, OS ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 20, OS ubuntu-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 24, OS windows-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 18, OS windows-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 22, OS windows-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 20, OS windows-latest)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830, actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5, actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093, actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
Integration Tests (Node 24, OS windows-latest)
NOTICE: windows-2025 requests are being redirected to windows-2025-vs2026 by May 12, 2026
Integration Tests (Node 18, OS windows-latest)
NOTICE: windows-2025 requests are being redirected to windows-2025-vs2026 by May 12, 2026
Integration Tests (Node 22, OS windows-latest)
NOTICE: windows-2025 requests are being redirected to windows-2025-vs2026 by May 12, 2026
Integration Tests (Node 20, OS windows-latest)
NOTICE: windows-2025 requests are being redirected to windows-2025-vs2026 by May 12, 2026

Artifacts

Produced during runtime
Name Size Digest
dist-artifacts-25692285449 Expired
934 KB
sha256:e9165ce7d548e383e7341d6f448c1e59de9c77df9e7a351f276b37b5122160cf