Can't import RestSerializer (or any other serializer)
See original GitHub issueI’m trying to use RestSerializer
, but I can’t import it. The error message I keep getting is:
Module '"miragejs"' has no exported member 'RestSerializer'
I’m using "miragejs": "^0.1.37"
in an Angular 8 project, using Typescript. I have no idea about what could be happening. Any ideas?
Thanks a lot!
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Can't import serializer from other serializer in django rest ...
What I have done to solve this was declaring all the serializers in a single file. Therefore, you have two options: Move LeadSerializer...
Read more >Can't import serializer from other serializer in django rest ...
Django : Can't import serializer from other serializer in django rest - framework ?
Read more >Tutorial 1: Serialization - Django REST framework
We can do this by declaring serializers that work very similar to Django's forms. Create a file in the snippets directory named serializers.py...
Read more >Unable to import serializer · Issue #266 · Tivix/django-rest-auth
Solution for us is to move LoginSerializer extension to separate file, right now it's grouped with other serializers that are imported by views....
Read more >Tutorial 1: Serialization - Django REST framework - Tom Christie
Although you will find them in our repository version of this tutorial code, we have omitted them here to focus on the code...
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
Hi @juanghurtado and @dushr.
Thanks for your messages. Yep, Serializer support is already added https://github.com/miragejs/miragejs/pull/397
I guess @samselikoff will cut a new release soon so Serializers will be supported in TypeScript environment as well. 😉
Thanks a lot!