NPM CCXT Not Working
I'm trying to run the NPM Package CCXT and I'm getting an
"ERR_MODULE_NOT_FOUND"
error any help in resolving would be much appreciated.
TypeError: Could not resolve 'debug' from 'file:///Users/xxx/Library/Caches/deno/npm/registry.npmjs.org/ccxt/4.1.75/js/src/static_dependencies/proxies/http-proxy-agent/index.js'.
8 Replies
Looking into the npm package it seems like they depend on the
debug
package but haven't listed that as a dependency inside their package.json
This likely only works by accident even in node because another dependency might put debug
into node_modules
which this one relies on
Would be worth filing a bug report in their tracker that they forgot to list the dependency in their package.jsonthank you is there a way I can load it manaully as a hot fix in the interim
I don't think so. deno expects the contents in
package.json
to be correctOk , thanks again
maybe through esm.sh?
Would you be able to show me how to try that, still very new to deno
Changing
npm:ccxt
to https://esm.sh/cctx
should be enough to give that a goThank you, that worked great!!