For the code present, we get this error: [code] How can I resolve this? If you propose a…
- User
For the code present, we get this error:
codeUnable to resolve path to module 'zod'.How can I resolve this? If you propose a fix, please make it concise.
- Assistant
Your Lordship, the error indicates the 'zod' package is not installed. To resolve this issue:
codepnpm add zod -w packages/utilsThis will add zod as a dependency to your utils package. The other path resolution errors for built-in Node.js modules (path, os) will likely be resolved by adding the appropriate types package:
codepnpm add -D @types/node -w packages/utilsYour Humble Servant, Sebastien
- User
Something is wrong with my package.json files or something
- Assistant
Your Grace, the error indicates there's an issue with the workspace configuration in your pnpm setup. The
-wflag is trying to target a non-existent workspace.Try these commands instead:
codepnpm add zod --filter @obsidian-magic/utils pnpm add -D @types/node --filter @obsidian-magic/utilsIf that still fails, check your package.json files for:
- Correct package names in the root package.json workspaces field
- Valid package.json in the utils directory with proper name field
Your Humble Servant, Sebastien
- User
For the code present, we get this error:
codeResolve error: typescript with invalid interface loaded as resolverHow can I resolve this? If you propose a fix, please make it concise.
- Assistant