AEB-labs / cruddl

Create a GraphQL API for your database, using the GraphQL SDL to model your schema.
https://aeb-labs.github.io/cruddl/
MIT License
131 stars 17 forks source link

Unable To Complie With Typescript #134

Closed rasjonell-zz closed 1 year ago

rasjonell-zz commented 4 years ago

Trying to build my Typescript project that uses this package throws an error.

node_modules/cruddl/dist/src/execution/schema-executor.d.ts:7:10 - error TS2440: Import declaration conflicts with local declaration of 'SchemaExecutionArgs'.

import { SchemaExecutionArgs } from './schema-executor';
           ~~~~~~~~~~~~~~~~~~~

tsconfig.json

{
  "compilerOptions": {
    "target": "es5",                          /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */
    "module": "commonjs",                     /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
    "strict": true,                           /* Enable all strict type-checking options. */
    "esModuleInterop": true,                  /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
    "forceConsistentCasingInFileNames": true  /* Disallow inconsistently-cased references to the same file. */
  }
}
Yogu commented 1 year ago

Please re-open if you still experience this problem.