serverless webpack warning could not determine version of module

Viewed 1186

I have a typescript serverless project with serverless-webpack. It uses such modules as knex (sql query builder), pg, ioredis. Since these are designed to work server-side, there were some issues with bundling those with webpack, so I listed those as externals in webpack config.

Everything works but every time when packaging I get WARNING Could not determine version of module X for each of those.

Can someone explain me, what is the real underlying issue, which causes that and how can it be fixed to make things cleaner?

0 Answers
Related