Closed YusufcanY closed 2 years ago
@ejirocodes
@nimaebra
ref: https://github.com/vitejs/vite/issues/7051 later version of vite give a bit clearer error message
these
"browser": "dist/vue3-otp-input.esm.js",
"module": "dist/vue3-otp-input.esm.js",
would need to look like
"browser": "dist/vue3-otp-input.esm.mjs",
"module": "dist/vue3-otp-input.esm.mjs"
or include a new field like this
"type" : "module"
@YusufcanY, @Niputi, I've fixed this and tried it on a fresh Vue 3, Vite project and it works fine. Please uninstall and install the latest version on npm
Versions:
When I import otp component in vue file, my development is giving this error