Comments (4)
Currently this package distributes the index.ts
source file, which is what TypeScript picks up for the package's type definitions. I think this issue might be fixed by switching to distributing a generated index.d.ts
definition file instead.
from nestjs-dataloader.
Is there a workaround for this? I'm stuck using esModuleInterap
to support other modules.
Casting generateDataLoader(): any
squashes the typescript error, but results in the loader failing to properly load.
Nest could not find MyLoader element (this provider does not exist in the current context)
from nestjs-dataloader.
Related: #6
from nestjs-dataloader.
I personally used https://www.npmjs.com/package/patch-package to replace this line:
Line 11 in df8fa93
with
import DataLoader from 'dataloader';
from nestjs-dataloader.
Related Issues (20)
- Dataloader executing in HttpRequest with empty context in NestJSv7 HOT 2
- Error with Nest v7
- Accessing graphql context from loader HOT 6
- Compatibility issue with nest v7.1.2 HOT 1
- ID order in example HOT 1
- Unnecessary function wrap HOT 1
- Problem with @Subscription(): stale data is returned for the lifetime of the subscription HOT 3
- Building my lambda using serverless-webpack throwing error 'Module '"../../../node_modules/nestjs-dataloader/dist"' has no exported member 'NestDataLoader'.'
- Nest could not find TestLoader element (this provider does not exist in the current context) HOT 9
- Problem with GlobalPipes(ValidationPipe)
- Quick Question Job offer HOT 1
- Property 'intercept' in type 'DataLoaderInterceptor' is not assignable to the same property in base type 'NestInterceptor<any, any>'. HOT 3
- Support Nestjs 8
- Help with maintaining
- Remove "graphql" as a peer dependency HOT 1
- ESLint: 'idText' is declared but its value is never read.
- Missing types in 9.0.0 HOT 1
- Usage in @FieldResolver() HOT 1
- Strict type checking + custom cacheKeyFn gives a compile error
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 nestjs-dataloader.