ikatsuba / ngx-ssr Goto Github PK
View Code? Open in Web Editor NEWngx-ssr is a set of utilities for working with Angular Universal.
Home Page: https://ng-rickandmorty.web.app/
License: MIT License
ngx-ssr is a set of utilities for working with Angular Universal.
Home Page: https://ng-rickandmorty.web.app/
License: MIT License
First of all thank you very much for creating this module. I was thinking about writing one after going through a few blogs. I am pretty sure this would be very helpful for a lot of developers out there.
I am wondering if we should be using TransferStateModule and TransferHttpCacheModule in conjunction with this module or not.
Describe the bug
Hi, thank you for developing this library. When i try to build my project, this build task throws error:
ERROR in node_modules/@ngx-ssr/cache/lib/cache.interceptor.d.ts:10:5 - error TS2416: Property 'intercept' in type 'CacheInterceptor' is not assignable to the same property in base type 'HttpInterceptor'.
Type '(request: HttpRequest, next: HttpHandler) => Observable<HttpEvent>' is not assignable to type '(req: HttpRequest, next: HttpHandler) => Observable<HttpEvent>'
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Building successfully
Desktop (please complete the following information):
Additional context
package.json:
{
"name": "myproject",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e",
"compile:server": "webpack --config webpack.server.config.js --progress --colors",
"serve:ssr": "node dist/server",
"build:ssr": "npm run build:client-and-server-bundles && npm run compile:server",
"build:client-and-server-bundles": "ng build --prod && ng run myproject:server:production --bundleDependencies all"
},
"private": true,
"dependencies": {
"@angular/animations": "~8.2.3",
"@angular/common": "~8.2.3",
"@angular/compiler": "~8.2.3",
"@angular/core": "~8.2.3",
"@angular/forms": "~8.2.3",
"@angular/platform-browser": "~8.2.3",
"@angular/platform-browser-dynamic": "~8.2.3",
"@angular/platform-server": "~8.2.3",
"@angular/router": "~8.2.3",
"@nguniversal/common": "^11.2.1",
"@nguniversal/express-engine": "^8.2.6",
"@nguniversal/module-map-ngfactory-loader": "v8.2.6",
"@ngx-ssr/cache": "^1.1.1",
"angular-calendar": "^0.28.22",
"bootstrap": "^5.0.0-beta2",
"express": "^4.15.2",
"jquery": "^3.5.1",
"moment": "^2.29.1",
"ng2-search-filter": "^0.5.1",
"ngx-bootstrap": "^5.5.0",
"ngx-page-scroll": "^7.0.1",
"ngx-page-scroll-core": "^7.0.1",
"ngx-pagination": "^5.0.0",
"ngx-swiper-wrapper": "^8.0.0",
"rxjs": "~6.4.0",
"swiper": "^6.4.15",
"tslib": "^1.10.0",
"zone.js": "~0.9.1"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.803.1",
"@angular/cli": "~8.3.1",
"@angular/compiler-cli": "~8.2.3",
"@angular/language-service": "~8.2.3",
"@types/express": "^4.17.0",
"@types/node": "~8.9.4",
"@types/jasmine": "~3.3.8",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.0.0",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.1.0",
"karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.1",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.0",
"protractor": "~5.4.0",
"ts-loader": "^5.2.0",
"ts-node": "~7.0.0",
"tslint": "~5.15.0",
"typescript": "~3.5.3",
"webpack-cli": "^3.1.0"
}
}
Its not working with Angular 12 giving dependency error
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: @angular/[email protected]
npm ERR! node_modules/@angular/common
npm ERR! @angular/common@"~12.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/common@"^11.0.6" from @ngx-ssr/[email protected]
npm ERR! node_modules/@ngx-ssr/cache
npm ERR! @ngx-ssr/cache@"*" from the root project
Timeout library sets the status code of timed out requests to 0
. This may cause issues for a number of people because of the following:
0
is a boolean value for false and may interfere with pre-existing logic as no other code will return falsy408 Request Timeout
, or 504 Gateway Timeout
)It would be nice if we either used an existing status code, or allow the status code to be set by the user in the forRoot
so that they can prevent the use of magic numbers in their application.
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.