Skip to content
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

Can't install @datorama/akita for Angular 15.2.8. #1064

Open
Igor2017 opened this issue Apr 26, 2023 · 14 comments
Open

Can't install @datorama/akita for Angular 15.2.8. #1064

Igor2017 opened this issue Apr 26, 2023 · 14 comments

Comments

@Igor2017
Copy link

Is this a regression?

Yes

Description

Cause: The package.json file specifies the version of "tslib": "2.4.1".

If you change the version to "tslib": "^2.4.1", then everything compiles, all tests pass and can be installed in Angular 15.2.8.

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

No response

Anything else?

No response

Do you want to create a pull request?

Yes

@Igor2017
Copy link
Author

The point is that the angular/cli command
ng new app creates a package.json in which
"tslib": "^2.3.0" which results in version "2.5.0" being installed.
You can solve the problem by replacing "tslib": "^2.3.0" in package.json with "tslib": "2.4.1".
But not everyone is up to it.

@simeyla
Copy link

simeyla commented May 18, 2023

Angular 16.01 has the following versions for a new app.

"tslib": "^2.3.0"
"typescript": "~5.0.2"

Why does Akita have a hardcoded version?
I don't want to replace ^2.3.0 with 2.4.1!

Is Akita going to be updated or is there some other way to override this?

@Char2sGu
Copy link

Any updates on this?

@Char2sGu
Copy link

Are there any problems if Akita is using a tslib version other than 2.4.1? If none, why use a specific version instead of a version range?

@hassanasad
Copy link

Facing same issue

@hassanasad
Copy link

@NetanelBasal Can you please have a look at this? :)

@Igor2017
Copy link
Author

Igor2017 commented Sep 2, 2023

@NetanelBasal Can you please have a look at this? :)

Need at your "package.json" write
{
. . .
"dependencies": {
. . .
"tslib": "2.4.1",
. . .
}

@hassanasad
Copy link

@Igor2017 Yes but it would be better if its not fixed version. Probably ^2.4.1 would be better right?

@Igor2017
Copy link
Author

Igor2017 commented Sep 3, 2023

@Igor2017 Yes but it would be better if its not fixed version. Probably ^2.4.1 would be better right?

No. We need the exact version.

@sithwarrior
Copy link

@Igor2017 Yes but it would be better if its not fixed version. Probably ^2.4.1 would be better right?

No. We need the exact version.

Why do you need that exact version?

Facing the same issue when updating Akita to latest

@juancarlos-eco
Copy link

So it seems like Akita is totally abandoned...

@Char2sGu
Copy link

They now recommend @ngneat/elf in replacement of Akita, which is a much more composable solution comparing to Akita. It might seem pretty ugly at the first glance because it's more low-level comparing to Akita, but you can easily make Elf as powerful as Akita with just a little wrapping upon it.

@juancarlos-eco
Copy link

juancarlos-eco commented Oct 19, 2023

They now recommend @ngneat/elf in replacement of Akita, which is a much more composable solution comparing to Akita. It might seem pretty ugly at the first glance because it's more low-level comparing to Akita, but you can easily make Elf as powerful as Akita with just a little wrapping upon it.

Yeah, I'm using it already for new projects and despite of one or two things that I really miss out, it's working great.

Anyway, I don't really think it makes sense to leave Akita die like this, without even having a proper support for newer Angular versions... specially taking into account it has had a very successful path and there are a LOT of production projects using it.

Just saying that, from my pov, this is a really sad ending for such a great tool. I ain't sure if Elf is going to end the same way therefore I won't be able to recommend it to everyone the same way I did with Akita.

@hassanasad
Copy link

Its a great tool which I am still using - Felt like it started going downhill when it went under Salesforce.
Pretty much like everyone else, trying to plan to migrate to Elf now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants