We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
yarn appears to have slightly different peer dependency resolution compared to npm or pnpm.
This results in a failure installing @inlang/paraglide-js in projects or environments (like codesandbox) where yarn is the default.
$ yarn yarn install v1.22.19 info No lockfile found. [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... warning "@inlang/paraglide-js > @inlang/language-tag@1.3.0" has unmet peer dependency "@sinclair/typebox@^0.31.17". [4/4] 🔨 Building fresh packages... success Saved lockfile. $ paraglide-js compile --project ./project.inlang [##################################################################################] 82/82node:internal/errors:490 ErrorCaptureStackTrace(err); ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@sinclair/typebox' imported from /Users/jldec/inlang/yarn-paraglide/node_modules/@inlang/language-tag/dist/interface.js at new NodeError (node:internal/errors:399:5) at packageResolve (node:internal/modules/esm/resolve:889:9) at moduleResolve (node:internal/modules/esm/resolve:938:20) at defaultResolve (node:internal/modules/esm/resolve:1153:11) at nextResolve (node:internal/modules/esm/loader:163:28) at ESMLoader.resolve (node:internal/modules/esm/loader:838:30) at ESMLoader.getModuleJob (node:internal/modules/esm/loader:424:18) at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:77:40) at link (node:internal/modules/esm/module_job:76:36) { code: 'ERR_MODULE_NOT_FOUND' } Node.js v18.15.0 error Command failed with exit code 1.
paraglide-js should work in projects that use yarn.
Run the following in an empty directory:
yarn init -y git init npx @inlang/paraglide-js@latest init yarn install
https://github.com/jldec/yarn-paraglide
The text was updated successfully, but these errors were encountered:
Great haha. This is an SDK issue (the position we are hiring)
Sorry, something went wrong.
Just came here to say this. Saw the same thing. For now I guess I'll just manually add.
yarn version: 1.22.21
We should probably drop support for yarn below v3.
No branches or pull requests
Problem
yarn appears to have slightly different peer dependency resolution compared to npm or pnpm.
This results in a failure installing @inlang/paraglide-js in projects or environments (like codesandbox) where yarn is the default.
Expected behavior
paraglide-js should work in projects that use yarn.
Reproduction
Run the following in an empty directory:
Other information
https://github.com/jldec/yarn-paraglide
The text was updated successfully, but these errors were encountered: