awslabs / aws-mobile-appsync-sdk-js

JavaScript library files for Offline, Sync, Sigv4. includes support for React Native
Apache License 2.0
919 stars 266 forks source link

apollo-cache-inmemory contains a bug, requires upgrade #624

Open volkanunsal opened 3 years ago

volkanunsal commented 3 years ago

Note: If your issue/feature-request/question is regarding the AWS AppSync service, please log it in the official AWS AppSync forum

Do you want to request a feature or report a bug?

apollo-cache-inmemory@1.3.12 has a bug that was discussed in this issue 2 years ago:

https://github.com/apollographql/apollo-client/issues/4071

The latest version of the package, 1.6.6, doesn't contain this bug.

What is the current behavior?

The compiled output contains a require statement that crashes local server.

var wrap$1 = require('optimism').wrap

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

You need to use Snowpack server to build a project.

What is the expected behavior?

It shouldn't contain a require.

Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions?

I'm using the latest version of everything.

thadeu commented 3 years ago

Hi guys, something about this question? I'm has been same problem