You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After creating a new project and starting the dev server, the following error appears in console:
Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/@vueuse+integrations@10.6.1_focus-trap@7.5.4_fuse.js@6.6.2_vue@3.3.8/node_modules/@vueuse/integrations/useFuse.mjs?v=d41e5a87' does not provide an export named 'UseFuseOptions'
Also, the search functionality does not work because of this.
The error comes from the component components/app/AppSearch.vue in the following import:
import { useFuse, UseFuseOptions } from '@vueuse/integrations/useFuse'
The text was updated successfully, but these errors were encountered:
kmilogp8496
changed the title
Error on new project
Error on search on new project
Nov 17, 2023
This is due to a new compilerOptions that the nuxt team decided to set to true by default which require all type imports to be explicitly imported like import type {useFuseOptions} from ...
The fix was already made in the repo but in the meantime, you can just disable verbatimModuleSyntax by adding this in your nuxt.config
After creating a new project and starting the dev server, the following error appears in console:
Uncaught SyntaxError: The requested module '/_nuxt/node_modules/.pnpm/@vueuse+integrations@10.6.1_focus-trap@7.5.4_fuse.js@6.6.2_vue@3.3.8/node_modules/@vueuse/integrations/useFuse.mjs?v=d41e5a87' does not provide an export named 'UseFuseOptions'
Also, the search functionality does not work because of this.
The error comes from the component
components/app/AppSearch.vue
in the following import:import { useFuse, UseFuseOptions } from '@vueuse/integrations/useFuse'
The text was updated successfully, but these errors were encountered: