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
With the latest version 0.7.0 the Nuxt 3 build fails, because all types from Runtime Config are unknown, removing the nuxt-applicationinsights from nuxt.config modules fixes this.
Also downgrading the lib to 0.6.0 resolves this.
Error example:
error TS2322: Type '{ 'server-token': unknown; }' is not assignable to type 'HeadersInit | undefined'.
Types of property ''server-token'' are incompatible.
Type 'unknown' is not assignable to type 'string | undefined'.
26 headers: {
~~~~~~~
The text was updated successfully, but these errors were encountered:
Create .env file and add MONGODB_URI=mongodb+srv into it
See the "server/plugins/mongodb.ts" file - the env from useRuntimeConfig() is unknown
Then:
4. Remove 'nuxt-applicationinsights' from nuxt.config.ts modules
5. Go back to "server/plugins/mongodb.ts" file - the env from useRuntimeConfig() is now a string as it should be
With the latest version 0.7.0 the Nuxt 3 build fails, because all types from Runtime Config are unknown, removing the nuxt-applicationinsights from nuxt.config modules fixes this.
Also downgrading the lib to 0.6.0 resolves this.
Error example:
error TS2322: Type '{ 'server-token': unknown; }' is not assignable to type 'HeadersInit | undefined'.
Types of property ''server-token'' are incompatible.
Type 'unknown' is not assignable to type 'string | undefined'.
26 headers: {
~~~~~~~
The text was updated successfully, but these errors were encountered: