scttcper / koa2-swagger-ui

Swagger UI as Koa v2 middleware
MIT License
103 stars 32 forks source link

Missing lodash dependency when running in production #182

Closed alex-all3dp closed 4 years ago

alex-all3dp commented 4 years ago

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!

scttcper commented 4 years ago

:tada: This issue has been resolved in version 5.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: