Open mindplay-dk opened 1 year ago
I merged package.json from project that works for me with package.json from the Book's project. My conf:
Angular CLI: 15.1.4 Node: 18.14.2 Package Manager: npm 9.4.1
package.json: { "name": "recipes-book", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, "private": true, "dependencies": { "@angular/animations": "~13.1.0", "@angular/cdk": "^13.1.0", "@angular/common": "~13.1.0", "@angular/compiler": "~13.1.0", "@angular/core": "~13.1.0", "@angular/forms": "~13.1.0", "@angular/platform-browser": "~13.1.0", "@angular/platform-browser-dynamic": "~13.1.0", "@angular/router": "~13.1.0", "bootstrap": "4.6", "primeflex": "^3.1.3", "primeng": "^13.1.0", "primeicons": "^6.0.1", "quill": "^1.3.7", "rxjs": "~7.5.4", "tslib": "^2.3.0", "zone.js": "~0.11.4" }, "devDependencies": { "@angular-devkit/build-angular": "^13.3.10", "@angular/cli": "^15.2.1", "@angular/compiler-cli": "~13.1.0", "@types/jasmine": "~3.10.0", "@types/node": "^12.11.1", "jasmine-core": "~3.10.0", "karma": "~6.3.0", "karma-chrome-launcher": "~3.1.0", "karma-coverage": "~2.1.0", "karma-jasmine": "~4.0.0", "karma-jasmine-html-reporter": "~1.7.0", "typescript": "~4.5.2" } }
@everjava nice, I can confirm this works on node 18.14.2. Thanks!
Is font-awesome
a required dependency?
For the record, I removed font-awesome
and switched back to primeicons
, which is what the book used.
I've created a PR #6 so others can get this running.
Thanks for the help! 🙏
I realized later that font-awesome
shouldn't be there and I changed it to "primeicons": "^6.0.1"
and I forgot to update here :)
I ran into the same issue and solved it by changing the start script in package.json to:
"start": "export NODE_OPTIONS=--openssl-legacy-provider; ng serve --proxy-config proxy.config.json"
npm install
for any of the front-end projects no longer works on current LTS versions ofnode
and/ornpm
.The book doesn't specify which version you used.
Your
package.json
files don't specify anyengine
versions either.What do I need to get the code running?
Here's the error output from
ng serve
:Installing it didn't immediately work either:
I was able to install using
npm install --legacy-peer-deps
as it suggests, but with a flood of warnings:I realize this is a pretty normal experience with any Node project that's been sitting on a shelf for 2 years (or even 6 months) and I'm fine with running older versions of Angular and other dependencies - I have
nvm
and I'm happy to use outdated tools while learning, but you need to tell me what to install.I don't want to spend the first couple of days fighting to upgrade all this outdated stuff.
I'm here to learn Angular and RxJS.
Otherwise I'm considering a refund. 😕