Replies: 4 comments
-
| 
         btw, if I use the 'basicSsl' plugin then things work just fine. or I don't use 'mkcert' but instead I use a key/cert in the https then it works fine too. This works fine:import basicSsl from '@vitejs/plugin-basic-ssl' This also works (without basicSsl) - key/cert generated using command line 'mkcert'export default defineConfig({ but using 'mkcert' does not - it won't build and I don't know why and even which is the better thing to do.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         This question would be better in the vite-plugin-mkcert GitHub. But looking at FiloSottile/mkcert/releases, it seems only amd64 and arm64 are supported for Windows as the error message explains.  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         im on a windows 64 bit machine ,so amd64 would apply . i dont see an VUE settings that would make me build for 32 bit,or is this some VScode setting ? is there something i should look for that may be telling my project to build for 32 bit? thanks  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         This isnt related to vite or vue, you should check mkcert  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I posted this on Discord and now here - sorry for double posting, but I don't know where it is more appropriate.
I'm trying to make a VUE project support HTTPS. It works fine in HTTP but I tried adding the following to my vite.config.js and it fails:
I installed using:
npm i vite-plugin-mkcert -D
vite.config.js:
import mkcert from 'vite-plugin-mkcert'
export default defineConfig({
server: {
port: 8080,
https: true,
},
plugins: [
mkcert(),
]
)
I get the following error when I tried to build and I cannot seem to find any answers online.
`
**error when starting dev server:
Error: Unsupported platform. Unable to find a binary file for win32 platform with ia32 arch on https://github.com/FiloSottile/mkcert/releases
at Mkcert.getSourceInfo (D:\Platypus\voter\voter_frontend\node_modules\vite-plugin-mkcert\dist\mkcert.js:579:13)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Mkcert.initMkcert (D:\Platypus\voter\voter_frontend\node_modules\vite-plugin-mkcert\dist\mkcert.js:584:24)
at async Mkcert.init (D:\Platypus\voter\voter_frontend\node_modules\vite-plugin-mkcert\dist\mkcert.js:570:7)
at async config (D:\Platypus\voter\voter_frontend\node_modules\vite-plugin-mkcert\dist\mkcert.js:679:7)
at async runConfigHook (file:///D:/Platypus/voter/voter_frontend/node_modules/vite/dist/node/chunks/dep-a178814b.js:64451:25)
at async resolveConfig (file:///D:/Platypus/voter/voter_frontend/node_modules/vite/dist/node/chunks/dep-a178814b.js:63937:14)
at async _createServer (file:///D:/Platypus/voter/voter_frontend/node_modules/vite/dist/node/chunks/dep-a178814b.js:63190:20)
at async CAC. (file:///D:/Platypus/voter/voter_frontend/node_modules/vite/dist/node/cli.js:733:24)**
`
I'm on Windows 10
"vue": "3.2.47",
"vite": "4.3.3",
"vite-plugin-mkcert": "^1.16.0",
Anyone know what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions