Platform: Can't install @ngrx/entity via NPM or Yarn

Created on 10 Sep 2017  路  13Comments  路  Source: ngrx/platform

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request

What is the current behavior?

Yarn and NPM returns error when installing @ngrx/entity

Expected behavior:

It should be able to install @ngrx/entity via NPM or Yarn

Minimal reproduction of the problem with instructions:

Try installing it with the command npm install --save @ngrx/entity or yarn add @ngrx/entity

Version of affected browser(s),operating system(s), npm, node and ngrx:

Angular: 4.3.6
Node: 8.4.0
NPM: 5.4.1
OS: macOS 10.12.6

screen shot 2017-09-10 at 1 44 42 pm

Most helpful comment

This is because @ngrx/entity is not a released project yet. We are still landing the last remaining documentation bits. Once finished, we'll do a formal announcement and release.

All 13 comments

Managed to get around by issuing the command yarn add https://github.com/ngrx/entity-builds.git. Hopefully this will be available at NPM or Yarn.

+1 for npm.
npm ERR! 404 Not found : @ngrx/entity

@exequiel09 It doesn't work!

This is because @ngrx/entity is not a released project yet. We are still landing the last remaining documentation bits. Once finished, we'll do a formal announcement and release.

Any time frames for the release on npm?

Should your example app use this if it hasn't been released yet?

@petersgiles Yes. Its pretty close to release. Plus there are nightlies you can access now with full documentation.

Hi all,
how to install with NPM for the time being?
Regards

@SergioArrighi I added "@ngrx/entity": "ngrx/entity-builds.git#d1a695dab0b045c42a02a1d4f54cce6dbe3e856c", to my package.json file... hopefully this works for you

CollectionWebsiteComponent.html:4 ERROR TypeError: Cannot read property 'entities' of undefined
    at selectEntities (entity.es5.js:40)
    at store.es5.js:701
    at memoized (store.es5.js:669)
    at store.es5.js:705
    at memoized (store.es5.js:669)
    at store.es5.js:704
    at Array.map (<anonymous>)
    at store.es5.js:704
    at MapSubscriber.memoized [as project] (store.es5.js:669)
    at MapSubscriber.webpackJsonp.../../../../rxjs/operator/map.js.MapSubscriber._next (map.js:77)

<app-website-list [websites]="websites$ | async"></app-website-list>

Any idea?

If anyone is still having issues with this, I recommend using the nightly builds.
npm install github:ngrx/entity-builds

Anybody found a workaround?

@stankusl yep...don't use ngrx/platform use the older version. thats what i did anyway

Was this page helpful?
0 / 5 - 0 ratings