Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown file "sha.js" in apollo-graphql/lib/utilities/createHash.js #693

Closed
StarpTech opened this issue Apr 24, 2021 · 1 comment · Fixed by #699
Closed

Unknown file "sha.js" in apollo-graphql/lib/utilities/createHash.js #693

StarpTech opened this issue Apr 24, 2021 · 1 comment · Fixed by #699

Comments

@StarpTech
Copy link
Contributor

StarpTech commented Apr 24, 2021

Can't bundle it via webpack. There is no file called sha.js in the @apollo/federation package.

ERROR in ./node_modules/apollo-graphql/lib/utilities/createHash.js 9:11-28
Module not found: Error: Can't resolve 'sha.js' in '/home/starptech/repositories/starptech/demo/node_modules/apollo-graphql/lib/utilities'
resolve 'sha.js' in '/home/starptech/repositories/starptech/graphql-registry/node_modules/apollo-graphql/lib/utilities'
  Parsed request is a module
  using description file: /home/starptech/repositories/starptech/demo/node_modules/apollo-graphql/package.json (relative path: ./lib/utilities)

@apollo/federation: 0.23.1

0.23.0

❯ npm why sha.js
sha.js@2.4.11
node_modules/sha.js
  sha.js@"^2.4.11" from apollo-env@0.6.6
  node_modules/apollo-env
    apollo-env@"^0.6.6" from apollo-graphql@0.6.1
    node_modules/apollo-graphql
      apollo-graphql@"^0.6.0" from @apollo/federation@0.23.0
      node_modules/@apollo/federation
        @apollo/federation@"0.23.0" from the root project

0.23.1

❯ npm why sha.js
npm ERR! No dependencies found matching sha.js
trevor-scheer pushed a commit that referenced this issue Apr 26, 2021
…ckages (#699)

Remove lingering references to core-js.

Update `apollo-graphql` to `latest`, which includes a dependency fix for a missing
package `sha.js` which was previously required transitively.

Fixes #692.
Fixes #693.
@trevor-scheer
Copy link
Member

Thanks for the report! This is resolved in the latest versions of federation and gateway:

- @apollo/federation@0.23.2
- @apollo/gateway@0.26.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants