Closed tjx666 closed 1 year ago
same error, how tor resolve it ?
Cannot read properties of undefined (reading 'InstanceSet')
这个错误是 coding.net 接口返回值为空导致的,但是我本地测试是好的没法重现。
https://github.com/liuweiGL/vite-plugin-mkcert/blob/a5bd23fe8dadae62d7bff034848df186fb2b9eb1/plugin/mkcert/source.ts#L121
1.14.0 版本是没问题的
:tada: This issue has been resolved in version 1.16.0 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Describe the bug
with following config:
when
path.resolve(process.cwd(), "node_modules/.cert")
is empty,vite
will throw errorTypeError: Cannot read properties of undefined (reading 'InstanceSet')
Somethings need to note:
coding
, if I use default source, no this issuepath.resolve(process.cwd(), "node_modules/.cert")
cache not existedReproduction
https://github.com/tjx666/vite-plugin-mkcert-issue-m1
System Info
Output of
npx envinfo --system --npmPackages vite,vite-plugin-mkcert --binaries --browsers
:Used package manager: pnpm 8.5.1
Logs