Joël
Joël
NNuxt
Created by Moritz Walter on 11/4/2024 in #❓・help
Import composables from an other Module
I want to use it to forward headers from my middeware to every request made with the graphql client
21 replies
NNuxt
Created by Moritz Walter on 11/4/2024 in #❓・help
Import composables from an other Module
Yes, that does not fix my issue. FYI im trying to access the useGqlHeaders composable in the module im creating not in the playground
21 replies
NNuxt
Created by Moritz Walter on 11/4/2024 in #❓・help
Import composables from an other Module
Yep
21 replies
NNuxt
Created by Moritz Walter on 11/4/2024 in #❓・help
Import composables from an other Module
Thanks. But im still not able to access the function that the module adds. For example i want to have useGqlHeaders from the nuxt-graphql-client inside my module. But even when doing this: I cant import them.
await installModule('nuxt-graphql-client', defu({
clients: {
default: {
host: options.apiUrl,
introspectionHost: options.apiUrl,
proxyHeaders: ['Prepr-Customer-Id', 'Prepr-Visitor-IP', 'Prepr-Segments'],
token: {
type: 'Bearer',
value: options.accessToken,
},
},
},
}, config))
await installModule('nuxt-graphql-client', defu({
clients: {
default: {
host: options.apiUrl,
introspectionHost: options.apiUrl,
proxyHeaders: ['Prepr-Customer-Id', 'Prepr-Visitor-IP', 'Prepr-Segments'],
token: {
type: 'Bearer',
value: options.accessToken,
},
},
},
}, config))
21 replies
NNuxt
Created by Moritz Walter on 11/4/2024 in #❓・help
Import composables from an other Module
@Moritz Walter Did you figure this out yet? I'm running into the same problem
21 replies