I have a pnpm workspace setup like this:
packagesfrontendbackendutilsdirectus-extensionsexample-extensionsrcindex.ts
I'm trying to use the utils package inside example-extension and added it to its package.json using: "utils": "workspace:*", in my devDependencies.
Everything seems fine while writing the code, no TS import errors or anything. However, when building the extension using pnpm directus-extension build, I get:
- Building Directus extension...
│ "utils" is imported by "src/index.ts", but could not be resolved – treating it as an external dependency.
Anyone ran into this before? If so, how did you fix it?