Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

I'm getting a "seoPlugin is not a function" error?

default discord avatar
acemaker00last year
3

What am I missing here?



  • default discord avatar
    fofoy.last year

    Your import should be

    import seo from '@payloadcms/plugin-seo';

    And then replace

    seoPlugin

    by

    seo

    when you define config as well

  • default discord avatar
    acemaker00last year

    I can't use ES6 though. Shouldn't this be the same thing?



    Found a solution...



    const seoPluginModule = require("@payloadcms/plugin-seo"); const seoPlugin = seoPluginModule.default;

    Thanks for your help

    @221991308976324608

    !

  • default discord avatar
    fofoy.last year

    I'm glad you got it sorted !

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.