Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of undefined (reading 'url') #7074

Open
6 tasks done
zhaoguangyue opened this issue Dec 12, 2024 · 1 comment
Open
6 tasks done

TypeError: Cannot read properties of undefined (reading 'url') #7074

zhaoguangyue opened this issue Dec 12, 2024 · 1 comment

Comments

@zhaoguangyue
Copy link

Describe the bug

Vitest caught 4 unhandled errors during the test run.
This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'url')
❯ ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:1094:24
❯ ServiceWorkerContainer. ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:2695:15

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'url')
❯ ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:1094:24
❯ ServiceWorkerContainer. ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:2695:15

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'url')
❯ ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:1094:24
❯ ServiceWorkerContainer. ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:2695:15

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Error ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
TypeError: Cannot read properties of undefined (reading 'url')
❯ ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:1094:24
❯ ServiceWorkerContainer. ../../../../../../node_modules/.pnpm/msw@2.6.4_@types+node@18.19.48_typescript@4.5.5/node_modules/msw/lib/browser/index.mjs:2695:15

Reproduction

null

System Info

macbook Pro M3,vitest browser mode,
{
 "playwright": "^1.48.2",
 "@vitest/browser": "^2.1.8",
 "vite": "^5.4.2",
}

Used Package Manager

pnpm

Validations

Copy link

Hello @zhaoguangyue. Please provide a minimal reproduction using a GitHub repository or StackBlitz (you can also use examples). Issues marked with needs reproduction will be closed if they have no activity within 3 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants