Invalid certificate
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- typescript, vite
Research direction
Start by reproducing the certificate error with the shown vite.config.ts and the npm run dev -- --https command, focusing on the basic SSL plugin and ServiceWorker registration at the reported scope. Done means the development server's certificate is accepted by the browser and the ServiceWorker script registers without the SSL error.
Written by the indexing model from the issue text.
Description
I get this error :
Uncaught (in promise) DOMException: Failed to register a ServiceWorker for scope ('https://127.0.0.1:5173/src/') with script ('https://127.0.0.1:5173/src/sw.ts'): An SSL certificate error occurred when fetching the script.
And this is my vite.config.ts file :
`
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import basicSsl from '@vitejs/plugin-basic-ssl'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
basicSsl()
],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
server: {
https: true
},
});
`
Also, I have vue 3.2.45 and vite 3.2.4.
And I launch the dev server with the command
npm run dev -- --https
- Dominant language
- TypeScript
- Stars
- 519
- Forks
- 28
- Avg merge
- 21d 13h
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from vitejs/vite-plugin-basic-ssl
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
vitejs/vite-plugin-basic-ssl#116 · 1 comment · 1 reaction ·
-
Dependency DashboardOpen
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
vitejs/vite-plugin-basic-ssl#17 · 3 comments · 3 reactions ·
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
vitejs/vite-plugin-basic-ssl#14 · 3 comments ·
All issues in vitejs/vite-plugin-basic-ssl
Similar issues
-
check:failed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
iptv-org/iptv#53974 · 1 comment ·
Maintainers usually reply within 1 day
-
type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
interledger/rafiki#3986 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Doist/todoist-cli#576 ·
Maintainers usually reply within 1 day
-
feature
Difficulty 1/5 Under an hour Newbie friendliness 72/100
vercel-labs/skills#2370 ·
Maintainers usually reply within 1 day
-
🐛 Bug supabase/cli
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day