There are types at [...] but this result could not be resolved under your current 'moduleResolution' setting.

#382 · closed · 1 comments

View on GitHub ↗

jaenyf

Hi Andrei and thank you for this great repository ! I'm trying to set up a monorepo where some of my packages import external modules. Some of these external imports works well, but some other just doesn't ! For instance, when trying to import these modules tsc fail at build time with ``` tsc -p tsconfig.build.json error TS2307: Cannot find module '@modulePublisher/moduleName' or its corresponding type declarations. There are types at '/[...]/node_modules/@modulePublisher/moduleName/dist/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'. ``` I guess, switching all the moduleResolution to bundler in the repo is not ideal. I'm not sure what to do, I think it's because they are building for a more recent module resolution, right ?

Comments

NiGhTTraX

> I guess, switching all the moduleResolution to bundler in the repo is not ideal. I think that should be fine. This repo includes lots of different examples so I chose a common denominator to let people further adapt it to their needs.