question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't import RestSerializer (or any other serializer)

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
zoltan-nzcommented, Apr 29, 2020

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. 😉

0reactions
juanghurtadocommented, Apr 29, 2020

Thanks a lot!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found