Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode.

 Getting this error and quite easy to resolve, just convert

   async function getJobListing() 


To use a const as shown below:    

const getJobListing = async function () {

            const jobs = await prisma.jobs.findMany({

Comments

Popular posts from this blog

vllm : Failed to infer device type

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

android studio kotlin source is null error