scttcper / koa2-swagger-ui

Swagger UI as Koa v2 middleware

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing lodash dependency when running in production

alex-all3dp opened this issue ยท comments

Hello,
with the update to 5.0.0 I receive the following error on startup when running the app in production without dev dependencies installed:

Error: Cannot find module 'lodash'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/var/app/current/node_modules/koa2-swagger-ui/dist/index.js:6:18)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

I assume this change is somehow responsible for it?

Bildschirmfoto 2020-09-04 um 09 10 49

is this a bug with lodash.defaultsDeep or an issue you can fix?

Thank you!

๐ŸŽ‰ This issue has been resolved in version 5.0.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€