Getting Started error SyntaxError..UseFuseOptions..AppSearch
Closed this issue · 3 comments
PhE commented
Starting a new docus instance (following the docs Getting Started section) raises a console error on front page :
npx nuxi@latest init docs -t themes/docus
cd docs
npx bun install
npx bun run dev
Error in the console :
Uncaught SyntaxError: The requested module '/_nuxt/node_modules/@vueuse/integrations/useFuse.mjs?v=d3a2bf86' does not provide an export named 'UseFuseOptions' (at AppSearch.vue:1:25)
AndreyYolkin commented
This is caused by 3.8.0 changes in type resolution. https://github.com/nuxt/nuxt/releases/tag/v3.8.0
As temp solution you can add this in root nuxt.config.ts
:
typescript: {
tsConfig: {
compilerOptions: {
verbatimModuleSyntax: false
}
}
}
anabrnjasevic commented
This solves it for me, I had same issue...Thanks!
PhE commented
Thanks @AndreyYolkin !