Open alihasana opened 4 years ago
I ran into this same problem and tracked it down to that as of v2.0.1
of knex they are using the new peerDependenciesMeta
property in their package.json
file:
"peerDependencies": {
"mssql": "^5.1.0",
"mysql": "^2.17.1",
"mysql2": "^2.1.0",
"pg": "^7.17.0",
"sqlite3": "^4.1.1"
},
"peerDependenciesMeta": {
"mssql": {
"optional": true
},
"mysql": {
"optional": true
},
"mysql2": {
"optional": true
},
"pg": {
"optional": true
},
"sqlite3": {
"optional": true
}
},
The dependencies parser in this plugin doesn't support this structure, so thinks that all of the peer dependencies listed should be installed and fails the build as a result.
Looks like #44 would take care of this. 👍
There is an issue while deploy.
I am using knex with client mysql, but serverless plugin include dependencies are requesting all client module(pg, mssql, sqlite3, mysql2 etc..) one by one.
Please note client is clearly mention as mysql
call Knex
Error