-
Notifications
You must be signed in to change notification settings - Fork 9
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
Need to update packages to get this to work #1
Comments
I am getting a ton of compilation errors starting from MdIconModule and others. |
This is a limitation of Angular and dependencies, you can downgrade Node versions to v8 and should be able to correctly build and compile for this version of Angular. |
I changed my Node version to 8 as per your recommendation, but Angular CLI is not happy about it and throws an error. ng serve Please update your Node.js version or visit https://nodejs.org/ for additional instructions. What could I do to run this application? |
Given the drift of Angular dependencies and Node changes, the best thing would be to do the following using a newer version of Node and latest Angular CLI. I'm writing this quickly without testing, but it should get you close and I'll try to test when I have some time next week.
ng new invoices
|
I followed the instructions in the book:
git clone https://github.com/angular-in-action/invoice
cd invoice
git checkout start
npm install
However, I get a build error. Also, ng serve gives an error.
The problem seems to be that some of the packages do not work with my (current) version of node:
https://www.npmjs.com/package/node-sass
Fixing that seems to require:
npm install node-sass
npm install fsevents
Now, ng serve compiles successfully
But you still have to start the api server to get the application to run:
npm run api
The text was updated successfully, but these errors were encountered: