h-REA / hREA

A ValueFlows / REA economic network coordination system implemented on Holochain and with supplied Javascript GraphQL libraries
https://docs.hrea.io
Other
142 stars 15 forks source link

graphql-client module not importable #401

Open LeosPrograms opened 3 months ago

LeosPrograms commented 3 months ago

When I try to import the graphql-client module locally with pnpm link, I get the error

Named export 'remove' not found. The requested module 'ts-invariant/process/index.js' is a CommonJS module, which may not support all module.exports as named exports. CommonJS modules can always be imported via the default export, for example using:

import pkg from 'ts-invariant/process/index.js'; const { remove } = pkg; ...

If I don't pnpm link the graphql-client module, I can't pnpm link the vf-graphql-holochain module, because the latter is a dependency of the former, and so the latter gets imported from the published npm package instead of the local one.