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

Unrecognized option "xml" under "jms_serializer.visitors". Available options are xml, json #719

Closed
irahulvarma opened this issue Feb 13, 2019 · 2 comments

Comments

@irahulvarma
Copy link

I newly installed new project with Symfony 4.2 . As the sonata-project/user-bundle requires "jms/serializer-bundle": "^1.0 || ^2.0" . After executing, it gives me error Unrecognized option "xml" under "jms_serializer.visitors". Available options are xml, json

Help me with the solution.

@goetas
Copy link
Collaborator

goetas commented Feb 13, 2019

Attention that sonata-project/user-bundle uses require-dev, that is ignored in your project so you got jms/serializer-bundle v3.

So I suggest you downgrading to 2.x by adding it explicitly in your composer.json.

On the other side, if you wand to upgrade to jms/serializer-bundle v3, upgrading info are in
https://github.com/schmittjoh/JMSSerializerBundle/blob/master/UPGRADING.md#upgrading-from-2x-to-30

@goetas goetas closed this as completed Feb 13, 2019
@goetas
Copy link
Collaborator

goetas commented Feb 13, 2019

Added feature request sonata-project/SonataUserBundle#1082

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

No branches or pull requests

2 participants