Error: payload.config

default discord avatar
Taun
last week
8

Hi. Error:

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


Any ideas?

  • default discord avatar
    thisisnotchris
    last week

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



    import path from 'path'
  • default discord avatar
    Taun
    last week

    Thanks Chris. New error:

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


    after runnign autofix - " + FullyQualifiedErrorId : CommandNotFoundException"

    image.png
  • default discord avatar
    thisisnotchris
    last week

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



    I think



    Can we see your eslintrc file

  • default discord avatar
    Taun
    last week
    module.exports = {
      extends: ['@payloadcms'],
    }
Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!

Star

Connect with the Payload Community on Discord

Discord

online

Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.