-
-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
indexedDB is not defined #63
Comments
This issue is blocking my deployments 😞 |
You can install export default defineConfig({
test: {
setupFiles: [
//...
"fake-indexeddb/auto" // required for EmojiPicker
],
//... |
My workaround in my nuxt 3 app is to load the component with
|
It works for me, I did it this way. and so created a folder and a file
|
I have also encountered this issue and hope the developers can solve it as soon as possible. Thank you. The above measures are not effective. I am using nuxt3 |
The problem is Nuxt’s Server-Rendering: IndexedDB exists only in the browser and not on the server. |
Its an unfortunate workaround. Something like this shouldn't be so tightly coupled with |
Of course it’s not an ideal solution. It’s just a pragmatic way to make this otherwise great library work in Nuxt. |
I had the same issue and I fix it with: Adding the ''vue3-emoji-picker'' to the nuxt.config file
Create a plugin ' vue-emoji-picker.client.ts' `import EmojiPicker from 'vue3-emoji-picker' export default defineNuxtPlugin((nuxtApp) => {
|
Environment:
vue3-emoji-picker: 1.1.8,
Framework: Vue 3
OS: macOS 13.3
Browser : [Chrome Version 116.0.5845.179 (Official Build) (arm64)]
Description:
ReferenceError: indexedDB is not defined
error message appear when I run unit testing withvitest
.Expected Behavior:
There should be an option to not use the indexedDB so it will not reproduce the error
Additional Context:
Do we have option to disable the usage of indexedDB?
Thank you in advance for your assistance!
The text was updated successfully, but these errors were encountered: