Skip to content

Is it possible to use ja_serializer with a newly generated Phoenix 1.7.7 app? #346

@theirishpenguin

Description

@theirishpenguin

The Problem

A newly generated Phoenix 1.7.7 app does not have Phoenix.View but ja_serializer depends on Phoenix.View.

From the Phoenix 1.7.7 release announcement...

image

I've tried a few things but I get a variety of errors no matter what I try.

Is it correct to say that the new Phoenix.Template approach of Phoenix 1.7.7 will not currently work with the latest version of ja_serializer? Are there any plans to make ja-serializer integrate with Phoenix 1.7.7?

Potential Temporary Workaround

I notice in the Phoenix 1.7.7 upgrade guide that this might be a possibility...

image

... but going forward that workaround (assuming it even works) would be problematic. It would commit someone, for example when Phoenix 1.9.0 is released, to create a Phoenix 1.6.X and then keep upgrading to 1.9.0.

Any thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions