bynk.requires.conflicting_range
Error Two adapter binding … requires { … } entries give different version ranges for one npm package.
A project installs one version of each npm package, so every adapter that requires a package must give the same range for it. Two adapters that ask for jose at ^4 and ^5 leave the build with no version that satisfies both, so the second is refused and names the first. Ranges are compared as written, so ^5 and ^5.0.0 conflict too. The same code reports one adapter that lists a package twice at different ranges. Give both the same range. A package the toolchain itself pins, such as the one its own bindings use, must be required at that exact version.
Example
binding "./auth.binding.ts" requires { "jose": "^5" }
// tokens.bynkbinding "./tokens.binding.ts" requires { "jose": "^4" } // ✗ `auth` already requires `^5`
binding "./tokens.binding.ts" requires { "jose": "^5" } // ✓ one rangeIn the Book
- Share code between projects › A dependency that wraps an npm library
- Adapters
- Wrap a library as an adapter
- Share code between projects › Approve a dependency’s npm packages
See also
- The grammar rule it governs:
binding_decl. - Every code in its category, npm requirements, on the diagnostic index.
bynk explain bynk.requires.conflicting_rangeshows the same from the installed toolchain, without a network.