We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've followed the jobs/tasks guide and am getting this error.
import type { TaskHandler } from 'payload'; ^^^^^^ SyntaxError: Cannot use import statement outside a module
I've created a new project using npx create-payload-app@latest and recreated a minimal example in this repo
npx create-payload-app@latest
https://github.com/devcshort/payload-task-issue
npm install
npm run dev
HTTP GET http://localhost:3000/my-route
That should be it. The API route is configured to queue and run the job/task that I've set up.
area: core
Payload: latest Next.js: 15.0.0 Node.js: 20.12.2 NPM: 10.5.0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Bug
I've followed the jobs/tasks guide and am getting this error.
I've created a new project using
npx create-payload-app@latest
and recreated a minimal example in this repoLink to the code that reproduces this issue
https://github.com/devcshort/payload-task-issue
Reproduction Steps
npm install
npm run dev
HTTP GET http://localhost:3000/my-route
That should be it. The API route is configured to queue and run the job/task that I've set up.
Which area(s) are affected? (Select all that apply)
area: core
Environment Info
The text was updated successfully, but these errors were encountered: