Skip to content

Update from 1.X (Craft 3) to 2.X (Craft 4) results in Deprecation Error #228

Open
@maxstrebel

Description

@maxstrebel

Hi, I'm currently updating a Craft 3 project to Craft 4. After upgrading (by filling in the recommended versions in package.json) I got a deprecation notice which references https://github.com/sebastian-lenz/craft-linkfield/issues/122.

After some research, I found out that there's a v2 for quite some time, which changes the namespace from typedlinkfield\fields\LinkField to lenz\linkfield\fields\LinkField. As this never showed up as Update, I am still on v1. The migration that does the change will not be run in Craft 4 (due to the deprecation notice). So what you would have to do is:

  1. Update to 2.0.0-rc.2 in Craft 3
  2. Run the migrations
  3. Do a project-config/rebuild
  4. Update to Craft 4

No problem to do that, but I guess it might help to have some documentation if this is the upgrade path. Or there should be some kind of upgrade path from Craft 3 v1 to Craft4 v2. Sorry that I'm not knowledgeable enough to create a pull-request for a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions