JeanMeche / ssr-v19

15 stars 3 forks source link

Setup issue #2

Open SaeedDev94 opened 10 hours ago

SaeedDev94 commented 10 hours ago

Hi,
I want to test angular 19 ssr to check if https://github.com/angular/angular-cli/issues/26323 fixed or not, but when I run npm install I'm getting error:

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: ssr-new@0.0.0
npm error Found: @angular/compiler@19.0.0-rc.0
npm error node_modules/@angular/compiler
npm error   @angular/compiler@"^19.0.0-next.0" from the root project
npm error   peer @angular/compiler@"19.0.0-rc.0" from @angular/compiler-cli@19.0.0-rc.0
npm error   node_modules/@angular/compiler-cli
npm error     dev @angular/compiler-cli@"^19.0.0-next.0" from the root project
npm error     peer @angular/compiler-cli@"^19.0.0-next.0" from @angular-devkit/build-angular@19.0.0-next.9
npm error     node_modules/@angular-devkit/build-angular
npm error       dev @angular-devkit/build-angular@"^19.0.0-next.9" from the root project
npm error
npm error Could not resolve dependency:
npm error @angular/platform-browser-dynamic@"^19.0.0-next.0" from the root project
npm error
npm error Conflicting peer dependency: @angular/compiler@19.0.0-next.8
npm error node_modules/@angular/compiler
npm error   peer @angular/compiler@"19.0.0-next.8" from @angular/platform-browser-dynamic@19.0.0-next.8
npm error   node_modules/@angular/platform-browser-dynamic
npm error     @angular/platform-browser-dynamic@"^19.0.0-next.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /home/saeed/.npm/_logs/2024-11-05T10_32_54_968Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/saeed/.npm/_logs/2024-11-05T10_32_54_968Z-debug-0.log

Also I installed 19.0.0-rc.0 and I notice this import is invalid:

import { REQUEST, REQUEST_CONTEXT } from '@angular/ssr';

There is no REQUEST inside @angular/ssr
Any advice that I can test this in action (with 19.0.0-rc.0) ?

JeanMeche commented 10 hours ago

I just bump the example to the latest RC. It should fix the issue.

SaeedDev94 commented 9 hours ago

I just bump the example to the latest RC. It should fix the issue.

Thanks, should I try fix-fastify-build-then-run ?
Because you didn't push it on main

JeanMeche commented 9 hours ago

My bad, the push failed. It should be good now !