Replies: 1 comment
-
Just to add functionally the code works fine since the api I've created lives within What I'm missing is just the types for visual studio code as it complains about the import { serverQueryContent } from '#content/server' which is just kind of an annoyance, since those types are not exported via the exports section within package.json for the content module. Edit {
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"paths": {
"#content/server": [ "./node_modules/@nuxt/content/dist/runtime/server" ],
}
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm in the process of seeing if I can write a module to provide local search functionality to a docus site using orama search
There's a couple of different ways to get the data for generating a search index.
I'm trying the first method first to generate a search index.
But I'm having problems importing '#content/server' from within a different module.
Since the .nuxt/types/content.d.ts file isn't being generated within the module I'm trying to write.
Is there a way to reference the content module from a different one in this way?
Beta Was this translation helpful? Give feedback.
All reactions