Giter VIP home page Giter VIP logo

Comments (8)

marcoslin avatar marcoslin commented on June 12, 2024 1

Basically, the problem is cause by strict=true in your tsconfig.json. I also use this option so I am having the sample problem.

If you want to keep strict flag in your project, the code needs to be changed from source:

  1. Deploy compiled code instead of raw ts code. In this case, we can ignore any error in the node_modules using the skipLibCheck
  2. Fix the source code so that it will compile with strict flag set

from node-ts-cache.

havsar avatar havsar commented on June 12, 2024 1

@GuyKh V4 has breaking changes. Please see the docs for the current usage examples.

from node-ts-cache.

GuyKh avatar GuyKh commented on June 12, 2024 1

@havsar looks good after the modifications

from node-ts-cache.

havsar avatar havsar commented on June 12, 2024

Thanks @marcoslin

I will consider this in the next release (4.0.0).

from node-ts-cache.

GuyKh avatar GuyKh commented on June 12, 2024

Could be related to this, but I'm getting:



node_modules/node-ts-cache/src/strategy/caching/abstract.base.strategy.ts:9:12 - error TS1243: 'async' modifier cannot be used with 'abstract' modifier.

9     public async abstract getItem<T>(key: string): Promise<T>;
             ~~~~~

node_modules/node-ts-cache/src/strategy/caching/abstract.base.strategy.ts:11:12 - error TS1243: 'async' modifier cannot be used with 'abstract' modifier.

11     public async abstract setItem(key: string, content: any, options: any): Promise<void>;
              ~~~~~

node_modules/node-ts-cache/src/strategy/caching/abstract.base.strategy.ts:13:12 - error TS1243: 'async' modifier cannot be used with 'abstract' modifier.

13     public async abstract clear(): Promise<void>;

from node-ts-cache.

havsar avatar havsar commented on June 12, 2024

@GuyKh It is related. There were some changes in the new tsc. This issues will be fixed in 4.0.0.

from node-ts-cache.

havsar avatar havsar commented on June 12, 2024

@sharathk2u @marcoslin @GuyKh
Please check with newest version (4.2.2) if possible.

from node-ts-cache.

GuyKh avatar GuyKh commented on June 12, 2024

@havsar
With node-ts-cache 4.2.3
Still no -- now getting the following:


src/app.ts:16:10 - error TS2305: Module '"../node_modules/node-ts-cache/dist"' has no exported member 'ExpirationStrategy'.

16 import { ExpirationStrategy, MemoryStorage } from "node-ts-cache";
            ~~~~~~~~~~~~~~~~~~

src/app.ts:16:30 - error TS2305: Module '"../node_modules/node-ts-cache/dist"' has no exported member 'MemoryStorage'.

16 import { ExpirationStrategy, MemoryStorage } from "node-ts-cache";
                                ~~~~~~~~~~~~~

from node-ts-cache.

Related Issues (17)

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.