Closed abel30567 closed 3 years ago
The __spreadArray
is only available after tslib 2.1.0, however, most of the SDK package targets tslib ^2.0.0
. I will put up a fix to bump up the tslib version. We should have bump up the tslib everytime we upgrade our TypeScript version. Luckily TypeScript team posted the compatibility table recently: https://github.com/microsoft/tslib/issues/148
As a short-term workaround, you can specify "tslib": "^2.3.0"
(or other version >= 2.1.0) in your dependencies. It will be picked up by v3 SDK
I got the warning for the __spreadArray
to go away but I am getting CORS error when I try to fetch the AppConfig from the browser
Hi @abel30567, Can you open a separate issue for it? We will address it separately.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.
Describe the bug
@aws-sdk/client-appconfig
is referencingtslib@2.0.0
and that package does not implement__spreadArray
. When loading the package on a React app I see the following warningsI am not able to fetch the App Configs
Your environment
SDK version number
@aws-sdk/client-appconfig@3.21.0
Is the issue in the browser/Node.js/ReactNative?
Browser
Details of the browser/Node.js/ReactNative version
Steps to reproduce
Observed behavior
When I send a request I get the following error
Expected behavior
Expected to receive the AppConfig blob response.
Screenshots
According to browser dev tools the
MiddlewareStack.js:110
depends on__spreadArray
Additional context
I replaced
tslib
from@aws-sdk/client-appconfig@3.21.0
manually with versiontslib@2.3.0
and the following warning went away.However, the request kept on failing when trying to fetch the AppConfigs