Loading hybrid packages from npm (graphql-tag)
i am currently trying to get dagger.io to run using deno and i am currently hitting this import issue:
graphql-tag seems to be a "hybrid" package with these fields:
if i slightly modify their package.json in my deno cache and set
"main"
to "./lib/index.js"
it works fine.
I am not so familiar with how deno recognizes a hybrid package.
What would the best approach here be? Can this be fixed with a small patch to graphql-tag?1 Reply
It's a bug in Deno. We should've picked the
module
entry point. Filed an issue for that https://github.com/denoland/deno/issues/25311