Render Module Not Found

Im trying to deploy a node app,

im getting Module Not Found.

I read some forums on it, some said it may be related to Linux’s case sensitivity but I checked everything and can find any issues.

Nov 20 08:15:08 PM Error: Cannot find module ‘pdfjs-dist’
Nov 20 08:15:08 PM Require stack:
Nov 20 08:15:08 PM - /opt/render/project/src/node_modules/easyinvoice/src/lib/easyinvoice.js
Nov 20 08:15:08 PM - /opt/render/project/src/node_modules/easyinvoice/index.js
Nov 20 08:15:08 PM - /opt/render/project/src/routes/checkoutRoute.js
Nov 20 08:15:08 PM - /opt/render/project/src/index.js
Nov 20 08:15:08 PM at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
Nov 20 08:15:08 PM at Function.Module._load (internal/modules/cjs/loader.js:730:27)
Nov 20 08:15:08 PM at Module.require (internal/modules/cjs/loader.js:957:19)
Nov 20 08:15:08 PM at require (internal/modules/cjs/helpers.js:88:18)
Nov 20 08:15:08 PM at Object. (/opt/render/project/src/node_modules/easyinvoice/src/lib/easyinvoice.js:45:22)
Nov 20 08:15:08 PM at Module._compile (internal/modules/cjs/loader.js:1068:30)
Nov 20 08:15:08 PM at Object.Module._extensions…js (internal/modules/cjs/loader.js:1097:10)
Nov 20 08:15:08 PM at Module.load (internal/modules/cjs/loader.js:933:32)
Nov 20 08:15:08 PM at Function.Module._load (internal/modules/cjs/loader.js:774:14)
Nov 20 08:15:08 PM at Module.require (internal/modules/cjs/loader.js:957:19) {
Nov 20 08:15:08 PM code: ‘MODULE_NOT_FOUND’,
Nov 20 08:15:08 PM requireStack: [
Nov 20 08:15:08 PM ‘/opt/render/project/src/node_modules/easyinvoice/src/lib/easyinvoice.js’,
Nov 20 08:15:08 PM ‘/opt/render/project/src/node_modules/easyinvoice/index.js’,
Nov 20 08:15:08 PM ‘/opt/render/project/src/routes/checkoutRoute.js’,
Nov 20 08:15:08 PM ‘/opt/render/project/src/index.js’
Nov 20 08:15:08 PM ]
Nov 20 08:15:08 PM }

Hi there,

Are you sure pdfjs-dist is listed in the package.json file? That would be the first thing to check.

Regards,
Mike


Render Support Engineer, MT (UTC-7)

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.