stealjs/steal

Improve warning when dependency versions conflict

Open

#1,391 建立於 2018年5月4日

在 GitHub 查看
 (0 留言) (1 反應) (0 負責人)JavaScript (1,367 star) (574 fork)batch import
error messageshelp wanted

描述

Below is a warning @eben-roux came across when using can-validate-validatejs: https://gitter.im/canjs/canjs?at=5aec8531da323a7c04f8b333

warning

The issue was that he had validate.js 0.12 installed in his project but can-validate-validatejs needed ^0.11.1

From the info provided in the warning, it seems like steal could maybe detect this scenario and offer a better warning. An idea that needs some work:

Multiple versions of the module with address ~/node_modules/validate.js/validate.js are being imported.

Modules:
  validate.js@0.12.0#validate
    - ~/src/main.js
  validate.js@0.11.1#validate
    - can-validate-validatejs

HINT: Check the semver ranges of your project and its dependencies.
Learn more at https://stealjs.com/docs/StealJS.error-messages.html#multiple-versions

貢獻者指南

Improve warning when dependency versions conflict · stealjs/steal#1391 | Good First Issue