Open jbhammon opened 11 months ago
@joshuaellis here's an issue for the dependency problem I noted earlier on #15992
I'm happy to take a stab at fixing this if someone can point me in the direction of where to start!
pnpm add @strapi/typescript-utils
There's also another way without installing @strapi/typescript-utils
.
.npmrc
file at the project root with this content:
shamefully-hoist=true
node_modules
and pnpm-lock.yml
file.pnpm i
.pnpm develop
.
Bug report
Required System information
Describe the bug
Issue #15992, that Strapi wouldn't work with
pnpm
, was fixed, but there is still an issue with Typescript projects. When you install dependencies withpnpm
you get this error about a missing dependency:The
@strapi/typescript-utils
package doesn't get installed, but it's referenced in thetsconfig
file that the Strapi CLI creates.Steps to reproduce the behavior
pnpm
pnpm i
pnpm develop
Expected behavior
Installing dependencies with
pnpm
installs the typescript-utils package.I manually added the dependency, and then the
develop
script was able to run fine. I'm guessing that a solution could be for the Strapi CLI to add this dependency to thepackage.json
file for TS projects.Code snippets
As a reference, here's the
./tsconfig
file causing the problem:Additional context
If there are any other TS-specific issues with using
pnpm
this issue could be a good place to collect them if they're small in scope.