Error running Apollo example (on latest version)
Hi.
When I run this example with the latest version of apollo from npm I get errors:
https://deno.land/manual@v1.36.4/node/how_to_with_npm/apollo
I tried removing the version to get the latest version and it pulled 4.9.3
which gave this error:
Deno
Apollo | Manual | Deno
Apollo Server is a GraphQL server that you can
set up in minutes and use with your existing data source (or REST API). You can
then connect any GraphQL client to it
2 Replies
Actually, it's giving the same error with the example code/version
I'm sorry to hear that you're having trouble running the Apollo example. The error message you're seeing suggests that there's an issue with loading the
package.json
file for the sha.js
module, which is a dependency of the @apollo/utils.createhash
module.
However, based on the documentation, Deno has native support for importing npm packages using npm:
specifiers, and no node_modules
folder is created when doing this. These packages are also subject to the same permissions as Deno applications.
It's also worth noting that Deno has made several improvements to npm support, including handling npm specifiers in deno vendor
and running pre
and post
scripts when executing a script from a package.json
file.
If you're still encountering issues, it might be helpful to check if there are any known issues with the specific versions of the Apollo and sha.js
modules you're using. If you can't find a solution, you might want to consider reporting an issue at the denoland/deno
repo. 🦕