aws-amplify / amplify-js

A declarative JavaScript library for application development using cloud services.
https://docs.amplify.aws/lib/q/platform/js
Apache License 2.0
9.43k stars 2.13k forks source link

StorageCache - Don't try to configure keyPrefix #208

Closed d0ruk closed 6 years ago

d0ruk commented 6 years ago

Hi,

ConsoleLogge prints the above warning. I think this is because I am trying to build a development server around the app, and something interferes with aws-amplify's localstorage.

[WDS] App hot update...
log.js:23 [HMR] Checking for updates on the server...
ConsoleLogger.js:86 [WARN] 26:58.967 StorageCache - Don't try to configure keyPrefix!
.../aws-amplify/lib/Common/Logger/ConsoleLogger.js.ConsoleLogger._log @ ConsoleLogger.js:86
.../aws-amplify/lib/Common/Logger/ConsoleLogger.js.ConsoleLogger.warn @ ConsoleLogger.js:148
.../aws-amplify/lib/Cache/StorageCache.js.StorageCache.configure @ StorageCache.js:103
.../aws-amplify/lib/index.js.Amplify.configure @ index.js:46
./src/index.jsx @ index.jsx:11
__webpack_require__ @ bootstrap 49ea5d4291ba56da87ab:678
hotApply @ bootstrap 49ea5d4291ba56da87ab:607
(anonymous) @ bootstrap 49ea5d4291ba56da87ab:289

Can you tell me what the cause of this warning might be?

p.s. I'm using amplify in a mobilehub project. i.e. Amplify.configure(aws_exports);

richardzcode commented 6 years ago

Fixed, will be in upcoming release.

richardzcode commented 6 years ago

released

github-actions[bot] commented 3 years ago

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.