Closed utpaulBS23 closed 1 year ago
@EricPoul
I added a router for test purposes and didn't add to the peerDependencies
. Should I leave tests and add router
to peerDependencies
?
How the router related to the library?
Only imports in tests for checking lazy provided effects
I see in tests in NGRX
they depend on both @angular/router/testing
and @angular/router
in tests. They do not add it in peerDependencies
.
I don't understand how the router is related. The only dependency is Angular:
https://github.com/ngneat/effects/blob/master/libs/effects-ng/package.json#L39
Yes, I know, it's strange. I could find a similar issue and a few referenced issues inside. https://github.com/ngrx/platform/issues/2830
Do you resolve this issue @EricPoul ?
Not yet. I can't just update every angular version. Use --legacy-peer-deps
for now. I'll try to research what we can do.
@EricPoul you do research and make it comparable with all angular version
@NetanelBasal Hard to test it until it's merged. I went through ngrx repo to check what the problem can be. The only thing I think can differ is that they store all specs in the spec
folder which is on the same level as src
folder.
@EricPoul when you install the library it installs the router?
I've just installed @ngrx/effects
that uses Router
in its test and it hasn't argue about peedDependencies
.
There is no reason that it will yell in our library. It's not a dependency. Did you try it yourself?
Not in our lib. I'm testing in the new test angular app ^15.2.1
Yes, and it yells?
It yells. When I build effects-ng
I see @angular/router
added to peer deps. I think I should check NX config.
Oh yes, It's Nx. They have a configuration to disable it
Yes, I encountered it as I remember but didn't think that it was actually NX
That's it. NGRX did the same in December as I see... I'll open PR
Yes, I know this issue and use it in my repositories. https://github.com/ngneat/elf/blob/master/packages/store/project.json#L10
Which @ngneat/effects-* package(s) are the source of the bug?
effects-ng
Is this a regression?
Yes
Description
Hi, I'm using node version 18.14. I'm getting a problem after uprating my angular version 14 to 15. I saw it's a peer dependency. Here is the screenshot.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
No response
Please provide the environment you discovered this bug in
Node version 18.14.0 and npm version 9.3.1 angular cil 15.2.1
Anything else?
No response
Do you want to create a pull request?
No