graffle-js/graffle

ipmort / require impossible

christopherreay opened this issue · 1 comments

Ive wasted more time just trying to "import" or "require" this module than I should have spent testing the graphql.

i dont know that the issue is, I am not interested. the error message

Error: No "exports" main defined in /home/christopher/context/promax.digital/eex/projects/eex-contracts/node_modules/graphql-request/package.json
    at exportsNotFound (node:internal/modules/esm/resolve:304:10)
    at packageExportsResolve (node:internal/modules/esm/resolve:594:13)
    at resolveExports (node:internal/modules/cjs/loader:634:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:724:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1211:27)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/home/christopher/context/promax.digital/eex/projects/eex-contracts/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1051:27)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at /home/christopher/context/promax.digital/eex/projects/eex-contracts/tasks/2.ecosystemActions/nonHardhatActions.d/prolifqSpecificActions/gatherTaxCronJob.ts:28:21 {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'```
  
  regardless I use import, await import, require, pff, whatever, Ive been coding for 30 years,.... no idea what is wrong with this. cheers,

Sounds like a project configuration issue. See more here #863.