Closed benjick closed 1 month ago
@benjick This is odd, what version of Payload are you running / what is your setup like?
This sounds more like an issue with the tsconfig maybe?
same issue
Sorry about the late reply. I'm on 2.11.1, a few version behind I see now
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
}
}
This is odd, your TSConfig looks about the same as mine. Looking into this...
@WillODR How are you running your payload project? I know that a misconfigured start script caused this issue for folks in other plugins
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.
Was running payload v1 until last month so might have missed a breaking change
@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.
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
Thank you will let you know if I encounter any issues.
Hello!
Wanted to use this plugin, but I can't get it running.
Using it like this:
but getting this error: