we recommend modifying typescript.tsConfig in your nuxt config because tsconfig files that extend other tsconfig files can have unexpected behaviour (like totally overwriting the nuxt defaults)
Error when using deployed version of Nuxt module with Sanity depdendencies
there are some deeply problematic dependencies in the sanity stack. we set optimizeDeps in the module - you can take a look at the code and replicate in your own module
in future.compatibilityVersion: 4 this will be different (namely, it will be the way you have things set up) - I suggest you enable that, and keep your current structure