Comments (9)
Importing it without forRoot and manually adding
{ provide: COOKIES_OPTIONS, useValue: {} },
CookiesOptionsService,
{ provide: CookiesService, useClass: BrowserCookiesService }
then throws:
@ngx-utils/cookies/src/browser/browser-cookies.module.d.ts:3:22 - error TS-996002: Appears in the NgModule.imports of AppModule, but could not be resolved to an NgModule class
3 export declare class BrowserCookiesModule {
Which must mean ther's something wrong with the way the declaration files are generated.
from cookies.
Copy pasting the source code into a temp subfolder for it to be compiled alongside the rest of the files works but is obviously not a permanent solution.
from cookies.
ERROR in ../../../node_modules/@ngx-utils/cookies/src/browser/browser-cookies.module.d.ts:4:47 - error TS-996005: BrowserCookiesModule.forRoot returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.
Just updated to angular 9-rc7 and this appears (linked to this issue), if someone could fix it and ping me when done (or if a better/active fork exists) thx
from cookies.
Same Issue as @DeepSnowNeeL
we consume a package that has n dep on cookies
from cookies.
I am using the new Angular 9 with Ivy by default and I am also getting the same issue as @DeepSnowNeeL .
from cookies.
Same for me, tried to migrate my app today to Angular 9, and got exactly the same.
from cookies.
Well, I've created a PR with migration to NG9, and updating types in moduleWithProviders, I think, that should help
Most likely the author of this library will not merge that, so, feel free to try to use my fork
https://github.com/daniloff200/cookies
from cookies.
@daniloff200 you've understimated him haha
from cookies.
@michaelbats yeah, suddenly appeared, that we live in one city, and I know some folks from his company, so, contacted him and asked for merge
I hope, that in 4.0.1 version all NG9 issues will be fixed, at least, that helped me today with my migration to Angular 9
from cookies.
Related Issues (19)
- NullInjectorError: No provider for REQUEST! HOT 2
- Angular 7 HOT 1
- Removing cookies on server doesn't work as expected HOT 1
- Add proper doc for { secure: boolen , httpOnly: boolean }
- With ng serve, cookies are not working in IE, Edge and Firefox. In chrome it is working HOT 1
- Wrong load path on Ivy compiler
- Angular 5? HOT 8
- Error during build Generic type 'ɵɵFactoryDef' requires 2 type argument(s). HOT 11
- Server config docs aren't clear
- ngx-utils does not work in angular-cli 9.1.0 HOT 2
- Service Injection Issue for Angular SSR
- Possible issue with ES6 syntax (SyntaxError: Unexpected token export) HOT 1
- Abandoned?
- Are the steps given in the guide complete? HOT 1
- Unexpected token import when running server.js HOT 2
- how to httponly option
- Angular 6? HOT 5
- Tests broken after using this service HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cookies.