Skip to content

devraul/graphql-modules-type-problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

graphql-modules moduleResolution bug problem

Repro

  1. go to module-nodenext
  2. install deps with npm npm install
  3. run npm run lint
  4. see no error
  5. go to module-bundler
  6. install deps with npm npm install
  7. run npm run lint
  8. see the errors related to types

TO FIX:

  1. go to module-bundler;

  2. open module-bundler/node_modules/graphql-modules/package.json

  3. Change the exports field:

      {
        "typings": "index.d.ts",
        "exports": {
          ".": {
    +       "types": "./index.d.ts",
            "require": "./index.js",
            "import": "./index.mjs"
          },
          "./*": {
    +       "types": "./*.d.ts",
            "require": "./*.js",
            "import": "./*.mjs"
          },
          "./package.json": "./package.json"
      }
  4. Save the changes

  5. now run npm run lint again

  6. see the error is gone

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published