- go to
module-nodenext
- install deps with npm
npm install
- run
npm run lint
- see no error
- go to
module-bundler
- install deps with npm
npm install
- run
npm run lint
- see the errors related to types
TO FIX:
-
go to
module-bundler
; -
open
module-bundler/node_modules/graphql-modules/package.json
-
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" }
-
Save the changes
-
now run
npm run lint
again -
see the error is gone