Comments (8)
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:
- Deploy compiled code instead of raw ts code. In this case, we can ignore any error in the
node_modules
using theskipLibCheck
- Fix the source code so that it will compile with
strict
flag set
from node-ts-cache.
@GuyKh V4 has breaking changes. Please see the docs for the current usage examples.
from node-ts-cache.
@havsar looks good after the modifications
from node-ts-cache.
Thanks @marcoslin
I will consider this in the next release (4.0.0).
from node-ts-cache.
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.
@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.
@sharathk2u @marcoslin @GuyKh
Please check with newest version (4.2.2) if possible.
from node-ts-cache.
@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)
- Add option for no expiration HOT 1
- race condition / dead locks HOT 3
- Property 'promisifyAll' does not exist on type 'typeof Bluebird' HOT 2
- how it works if user refresh the page HOT 2
- Use real TTL with Redis HOT 2
- TTL is defined as seconds but used as milliseconds HOT 2
- storage-node-fs with string parameter HOT 3
- how to update cache HOT 1
- how to use redisCluster with ioRedis
- How to clear cache for a single item? HOT 4
- cleanup todos HOT 1
- expose information "if" ttl is over
- If you cache a result value that's a false boolean value, the cache will always miss
- [Bug] Using inside a NodeJS project - error TS2300: Duplicate identifier 'beforeEach' HOT 2
- Property 'promisifyAll' does not exist on type 'typeof Bluebird' HOT 2
- interface RedisClient -> getAsync HOT 2
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 node-ts-cache.