Watch the ngrx entity screencast.
git clone
npm install
ng serve
Episode 60 - @ngrx/entity CRUD Demo
Watch the ngrx entity screencast.
git clone
npm install
ng serve
I got an error msg saying "Cannot read property 'length' of undefined".
Anyone got the same error?
Great video and introduction to @ngrx-entity
Can this be expanded to show CRUD with Firestore?
It seams like the structure used and the id's generated have a direct relationship to how entities would work. Also given a firestorm schema that does not conform to the entity structure (where and how this would be handled (in effect as utility ??)
I really think this is a huge time saver for most projects to quickly accomplish CRUD for a feature.
in this example CUD and the read (all the selectors) I guess its now SCUD :)
I'm getting an error when trying to serve up this project, saying: Cannot read property 'length' of undefined.
Here are my steps: I clone and install the NPM packages no problem:
$ git clone [email protected]:AngularFirebase/60-ngrx-entity-demo.git
$ cd 60-ngrx-entity-demo/
$ npm install
> [email protected] install /home/walrus/proj/60-ngrx-entity-demo/node_modules/node-sass
> node scripts/install.js
Cached binary found at /home/walrus/.npm/node-sass/4.5.3/linux-x64-57_binding.node
> [email protected] postinstall /home/walrus/proj/60-ngrx-entity-demo/node_modules/uglifyjs-webpack-plugin
> node lib/post_install.js
> [email protected] postinstall /home/walrus/proj/60-ngrx-entity-demo/node_modules/node-sass
> node scripts/build.js
Binary found at /home/walrus/proj/60-ngrx-entity-demo/node_modules/node-sass/vendor/linux-x64-57/binding.node
Testing binary
Binary is fine
added 992 packages in 10.099s
However, I get an error serving up the application:
$ ng serve
Cannot read property 'length' of undefined
TypeError: Cannot read property 'length' of undefined
at createSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15457:109)
at parseSourceFileWorker (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15389:26)
at Object.parseSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15338:26)
at Object.createSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:15192:29)
at VirtualFileStats.getSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/compiler_host.js:66:35)
at WebpackCompilerHost.getSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/compiler_host.js:191:38)
at findSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67909:29)
at processImportedModules (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:68056:25)
at findSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67937:17)
at processSourceFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67840:27)
at processRootFile (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67728:13)
at /home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67018:60
at Object.forEach (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:1449:30)
at Object.createProgram (/home/walrus/proj/60-ngrx-entity-demo/node_modules/typescript/lib/typescript.js:67018:16)
at AotPlugin._setupOptions (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/plugin.js:144:28)
at new AotPlugin (/home/walrus/proj/60-ngrx-entity-demo/node_modules/@ngtools/webpack/src/plugin.js:30:14)
For your information:
$ ng -v
@angular/cli: 1.4.9
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.