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.

Error: payload.config

default discord avatar
taun2160last year
8

Hi. Error:

 Parsing error: 'from' expected.eslint
'from' expected.ts(1005)
'from' expected.


Any ideas?

  • default discord avatar
    notchrlast year

    @taun2160 I think this error is because your path import is incomplete



    import path from 'path'
  • default discord avatar
    taun2160last year

    Thanks Chris. New error:

    Run autofix to sort these imports!eslintsimple-import-sort/imports


    after runnign autofix - " + FullyQualifiedErrorId : CommandNotFoundException"

    image.png
  • default discord avatar
    notchrlast year

    Your eslint is mandating the imports be sorted in a certain way



    I think



    Can we see your eslintrc file

  • default discord avatar
    taun2160last year
    module.exports = {
      extends: ['@payloadcms'],
    }
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..