Build fails due to missing dependency in @aws-amplify/pubsub
See original GitHub issueDescribe the bug
We’re using @aws-amplify/api-graphql
, @aws-amplify/auth
, @aws-amplify/core
and @aws-amplify/storage
in our react app.
All of the todays builds in our CI/CD fails due to an unresolved dependency in the @aws-amplify/pubsub package.
To Reproduce Steps to reproduce the behavior:
- create a new react app
- add these dependencies:
@aws-amplify/api-graphql
@aws-amplify/auth
@aws-amplify/core
@aws-amplify/storage
- import API from “@aws-amplify/api-graphql” in App.js;
- npm start or npm run build
- See error
Failed to compile. ./node_modules/@aws-amplify/pubsub/lib-esm/Providers/AWSAppSyncRealTimeProvider.js Module not found: Can't resolve 'isomorphic-ws' in '/node_modules/@aws-amplify/pubsub/lib-esm/Providers'
Expected behavior The app builds and/or runs
Screenshots
Issue Analytics
- State:
- Created 3 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Configuring build settings - AWS Amplify Hosting
Configure the build settings for an app deployed with Amplify Hosting. ... You can install OS packages for missing dependencies. build: phases: preBuild: ......
Read more >Unable to resolve "aws-amplify" from "App.js" - Stack Overflow
I have been trying to downgrade dependencies, but that throws me down a dependency rabbit hole, where I don't want to be. Something...
Read more >AWS Amplify and Angular - How to ? | by Anand Sharma
Install AWS amplify cli and Create a new Angular Application: · aws-amplify — The below npm package needs it, else you will get...
Read more >@aws-amplify/api-graphql - npm package | Snyk
All security vulnerabilities belong to production dependencies of direct and indirect packages. License: Apache-2.0. Security Policy: No.
Read more >Error Codes | Cloud Pub/Sub Documentation
Error HTTP Code Description
UNAUTHENTICATED 401 The client is not authenticated properly.
UNAVAILABLE 503 The service was unable to process a request.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is fixed!
Confirmed fixed on
unstable
:We’ll get this out soon!