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

The specified initialization vector (IV) does not match the block size for this algorithm