Giter Club home page Giter Club logo

Comments (9)

sebastiangug avatar sebastiangug commented on June 10, 2024

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.

sebastiangug avatar sebastiangug commented on June 10, 2024

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.

DeepSnowNeeL avatar DeepSnowNeeL commented on June 10, 2024
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.

itstueben avatar itstueben commented on June 10, 2024

Same Issue as @DeepSnowNeeL

we consume a package that has n dep on cookies

from cookies.

thebaron24 avatar thebaron24 commented on June 10, 2024

I am using the new Angular 9 with Ivy by default and I am also getting the same issue as @DeepSnowNeeL .

from cookies.

daniloff200 avatar daniloff200 commented on June 10, 2024

Same for me, tried to migrate my app today to Angular 9, and got exactly the same.

from cookies.

daniloff200 avatar daniloff200 commented on June 10, 2024

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.

sebastiangug avatar sebastiangug commented on June 10, 2024

@daniloff200 you've understimated him haha

from cookies.

daniloff200 avatar daniloff200 commented on June 10, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.