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

Deprecation warning for serializer with newer Ember Data versions #439

Closed
bitwolfe opened this issue Dec 20, 2019 · 1 comment · Fixed by #450
Closed

Deprecation warning for serializer with newer Ember Data versions #439

bitwolfe opened this issue Dec 20, 2019 · 1 comment · Fixed by #450
Labels

Comments

@bitwolfe
Copy link

Getting the following deprecation warning when running AddonDocs on Ember 3.15 with matching Ember Data version, but probably affects a few earlier versions too.

WARN: DEPRECATION: store.serializerFor("project") resolved the "-addon-docs" serializer via the deprecated `adapter.defaultSerializer` property.

Previously, if no application or type-specific serializer was specified, the store would attempt to lookup a serializer via the `defaultSerializer` property on the type's adapter. This behavior is deprecated in favor of explicitly defining a type-specific serializer or application serializer [deprecation id: ember-data:default-serializer] See https://deprecations.emberjs.com/ember-data/v3.x#toc_ember-data:default-serializers for more details.
                    at logDeprecationStackTrace (http://localhost:7357/assets/vendor.js:49179:21)
                    at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:49276:9)
                    at raiseOnDeprecation (http://localhost:7357/assets/vendor.js:49206:9)
                    at HANDLERS.<computed> (http://localhost:7357/assets/vendor.js:49276:9)
                    at invoke (http://localhost:7357/assets/vendor.js:49288:9)
                    at Object.deprecate (http://localhost:7357/assets/vendor.js:49244:28)
                    at DefaultStore.serializerFor (http://localhost:7357/assets/vendor.js:119491:37)
                    at http://localhost:7357/assets/vendor.js:115918:30
                    at invokeCallback (http://localhost:7357/assets/vendor.js:73387:17)
@RobbieTheWagner
Copy link
Member

Sounds like we need to define a serializer. Would you be interested in opening a PR for this @bitwolfe?

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

Successfully merging a pull request may close this issue.

2 participants