Giter Club home page Giter Club logo

Comments (12)

notchris avatar notchris commented on July 19, 2024 2

This issue should now be fixed. React wasn't part of `peerDependencies', so multiple versions were being pulled in. In addition, there was a bug with rowPinning (that I think is now resolved). Let me know if you run into any issues. @benjick @WillODR

from payload-table-field.

benjick avatar benjick commented on July 19, 2024 1

tsconfig:

{
  "compilerOptions": {
    "target": "es5",
    "lib": ["dom", "dom.iterable", "esnext"],
    "allowJs": true,
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "outDir": "./dist",
    "rootDir": "./src",
    "jsx": "react",
    "paths": {
      "payload/generated-types": ["./src/payload-types.ts"]
    }
  },
  "include": ["src"],
  "exclude": ["node_modules", "dist", "build"],
  "ts-node": {
    "transpileOnly": true,
    "swc": true
  }
}

from payload-table-field.

notchris avatar notchris commented on July 19, 2024

@benjick This is odd, what version of Payload are you running / what is your setup like?

from payload-table-field.

notchris avatar notchris commented on July 19, 2024

This sounds more like an issue with the tsconfig maybe?

from payload-table-field.

WillODR avatar WillODR commented on July 19, 2024

same issue

from payload-table-field.

benjick avatar benjick commented on July 19, 2024

Sorry about the late reply. I'm on 2.11.1, a few version behind I see now

from payload-table-field.

notchris avatar notchris commented on July 19, 2024

This is odd, your TSConfig looks about the same as mine. Looking into this...

from payload-table-field.

notchris avatar notchris commented on July 19, 2024

@WillODR How are you running your payload project? I know that a misconfigured start script caused this issue for folks in other plugins

from payload-table-field.

WillODR avatar WillODR commented on July 19, 2024

just using default script
"dev": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts nodemon",
i took a look at the ts config and mine is pretty similar had a play with it but couldn't get it to work. on version 2.14.0 not sure if that causes any issues.

from payload-table-field.

WillODR avatar WillODR commented on July 19, 2024

Was running payload v1 until last month so might have missed a breaking change

from payload-table-field.

notchris avatar notchris commented on July 19, 2024

@benjick @WillODR - Quick update: I figured out the initial issue, I wasn't building the project correctly so the npm package was trying to import from src, oops! Now I'm facing an issue where the built version is throwing a bunch of seemingly React-related errors but I'm not sure yet.

from payload-table-field.

WillODR avatar WillODR commented on July 19, 2024

Thank you will let you know if I encounter any issues.

from payload-table-field.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.