#Project unhappy inside monorepo - suspect tsconfig issues, but not sure what I'm doing.
15 messages · Page 1 of 1 (latest)
That was one of my thoughts, but I'm not seeing it. After the pnpm install, it looks like the right version is in place.
apps/cms/node_modules/sharp/package.json has version 0.32.6 which is the requested version.
That said .. /node_modules/sharp/package.json (top level) has 0.33.5, which is newer. I do not know why.
Hm. Storybook and Next.js canary have it as optional dependencies in the pnpm-lock.yaml
I used sherif to bring everything in line, and ... no change.
Okay - I had a little play with the tsconfig. I can definintely effect the errors. Now to figure out what's right/wrong.
❯ tsc --showConfig
tsconfig.json:20:25 - error TS6046: Argument for '--moduleResolution' option must be: 'node', 'classic', 'node16', 'nodenext'.
20 "moduleResolution": "bundler",
~~~~~~~~~
@jolly hinge You may check what version of tsc you're dealing with - I feel like the bundler option for moduleResolution isn't particularly new
You're right. Node is new enough, React is new enough, Next is new enough. I haven't checked what version of TSC I have. That will be the next check when I get to the keyboard.