PLEASE help us help you by writing a good post!
- Site Name: https://shiny-nougat-8b81b3.netlify.app/
- Issue: it is not working. Error is ERROR Error: ENOENT: no such file or directory, scandir ‘./src/routes/preview/apis/pg/[slug]’
- code : GitHub - cashfree/playground
- Framework: Sveltekit
Jun 20, 04:58:44 PM: fcad4b56 ERROR Error: ENOENT: no such file or directory, scandir './src/routes/preview/apis/pg/[slug]'
at Object.readdirSync (node:fs:1452:3)
at POST (file:///var/task/.netlify/server/entries/endpoints/api/_server.js:77:27)
at async render_endpoint (file:///var/task/.netlify/server/index.js:209:20)
at async resolve (file:///var/task/.netlify/server/index.js:2673:22)
at async respond (file:///var/task/.netlify/server/index.js:2566:22)
at async Runtime.handler (file:///var/task/.netlify/serverless.js:295:20) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: './src/routes/preview/apis/pg/[slug]'
}
The better the post - the faster the answer.