yarn dev triggers the error shown below, however I can still access the webapp on Xampp, but I would like to know what the cause of this error is so I can fix it, I followed the path of the error and I can’t even find the cli.js file mentioned.
here’s the error
C:xampphtdocsmonica>yarn dev
file:///C:/xampp/htdocs/app/node_modules/vite/dist/node/cli.js:442
throw new CACError(`Unknown option `${name.length > 1 ? `--${name}` : `-${name}`}``);
^
CACError: Unknown option `--https`
at Command.checkUnknownOptions (file:///C:/xampp/htdocs/app/node_modules/vite/dist/node/cli.js:442:17)
at CAC.runMatchedCommand (file:///C:/xampp/htdocs/app/node_modules/vite/dist/node/cli.js:640:13)
at CAC.parse (file:///C:/xampp/htdocs/app/node_modules/vite/dist/node/cli.js:579:12)
at file:///C:/xampp/htdocs/app/node_modules/vite/dist/node/cli.js:923:5
at ModuleJob.run (node:internal/modules/esm/module_job:218:25)
at async ModuleLoader.import (node:internal/modules/esm/loader:329:24)
Node.js v20.11.1
I tried looking it up on Google so I can find a solution but nothing worked.
New contributor
semi test is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.