-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
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
crumble forces newest version of angular #9
Comments
First of all: thanks a lot for this detailed issue and the accompanying PR. Unfortunately, I cannot reproduce the behavior described in the issue when using this Only if I omit the dependency to Your conflict might be caused by a Please understand that I would rather not change something that is not actually broken, so as to not break any existing installations out there. |
Found the issue. I'm using YARN which doesn't behave the same way as NPM when it comes to child dependencies. I tried doing a clean install of your example via NPM and YARN
Notice that yarn says [email protected] Perhaps the behavior your expecting is an undocumented feature of package.json. Or there's a bug in YARN :) |
Appears it's a YARN deduping issue. Found these issues |
WorkaroundOpen yarn.lock and find angular-route@^1.2 and then change version and resolved to their correct values. In my case it was:
|
Thanks again for the great debugging work! I have given this some more thought. Whether the bad deduping in yarn is considered a bug or not, it is probably a bad idea to rely on the deduping of the package manager for correct behavior of |
I get this error when installing angular-crumble
That basically mean that I have a version mismatch.
It's saying that angular-route isn't the same version as angular.
I have these packages installed:
I found a solution.
In your index.js you have
which makes sense because you have
package.json
However that is the root cause of my problem. As I now don't have control over what version of ngRoute is used in your module.
The fix is to remove
require('angular-route');
It now works :)
I'm no package.json guru. But shouldn't "angular-route" be moved to peer-dependencies in your package.json file?
The text was updated successfully, but these errors were encountered: