liuweiGL / vite-plugin-mkcert

Provide certificates for vite's https dev service.
https://www.npmjs.com/package/vite-plugin-mkcert
MIT License
585 stars 38 forks source link

Runtime Error #34

Closed lucasbois1 closed 2 years ago

lucasbois1 commented 2 years ago

Runtime Error

In v1.7.1 im getting a few of this runtime errors

image


I've modified this lines ...

(Lines 220, 281, 319) (I've deleted all the '?' before the dots in those lines)

image

image

image

and now is up and running.

Since i modified the dist file and i dont know how to fix the source code, I've oppened this Issue and not made a Pull Request.

liuweiGL commented 2 years ago

Which version of nodejs?

lucasbois1 commented 2 years ago

Node version - v16.15.1 npm version - v8.11.0 NVM version - v1.1.9

liuweiGL commented 2 years ago

What a weird bug, optional chaining is already supported in Node.js 14.

liuweiGL commented 2 years ago

You can append console.log(process.version) to vite.config.js to confirm the real node version.

lucasbois1 commented 2 years ago

image

console.log(process.version) printed in console

liuweiGL commented 2 years ago

https://github.com/nodejs/help/issues/3766 https://github.com/npm/cli/issues/4234#issuecomment-1040528646