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
...TypeScript is unable to resolve the declaration file and errors on that line.
Could not find a declaration file for module 'nuxt-oidc-auth/runtime/server/utils/session.mjs'. 'node_modules/nuxt-oidc-auth/dist/runtime/server/utils/session.mjs' implicitly has an 'any' type.
The declaration file next to session.mjs is named session.d.ts. Renaming this file to session.d.mts fixes the error and brings in the types correctly. Nuxt Module Builder is outputting the declaration files with the wrong extension.
It actually looks like a upstream issue, thanks for reporting!
I will see if we can do anything from our side or if we need to wait on a fix in mkdist.
Is this blocking something you try to achieve currently and is a workaround needed or is this just blocking you from getting correct declarations?
When attempting to import something in an app from one of the mjs files, e.g.,
...TypeScript is unable to resolve the declaration file and errors on that line.
The declaration file next to
session.mjs
is namedsession.d.ts
. Renaming this file tosession.d.mts
fixes the error and brings in the types correctly. Nuxt Module Builder is outputting the declaration files with the wrong extension.This issue might be related.
The text was updated successfully, but these errors were encountered: