Open matgott opened 3 years ago
Could you share the whole log?
Could you share the whole log?
That is all the log which I receive...
I had some issues with webpack and sequelize, now I fix it but still the same problem, webpack pack the service but the uploading to AWS isn't triggered:
Serverless: Bundling with Webpack...
asset delete.js 111 KiB [emitted] [minimized] (name: delete) 1 related asset
modules by path ../../utils/database/node_modules/ 262 KiB 57 modules
17 modules
webpack compiled successfully in 4115 ms
asset create.js 111 KiB [emitted] [minimized] (name: create) 1 related asset
modules by path ../../utils/database/node_modules/ 262 KiB 57 modules
17 modules
webpack compiled successfully in 4203 ms
asset findAll.js 111 KiB [emitted] [minimized] (name: findAll) 1 related asset
modules by path ../../utils/database/node_modules/ 262 KiB 57 modules
17 modules
webpack compiled successfully in 4199 ms
asset update.js 112 KiB [emitted] [minimized] (name: update) 1 related asset
modules by path ../../utils/database/node_modules/ 262 KiB 57 modules
17 modules
webpack compiled successfully in 4274 ms
asset findOne.js 111 KiB [emitted] [minimized] (name: findOne) 1 related asset
modules by path ../../utils/database/node_modules/ 262 KiB 57 modules
17 modules
webpack compiled successfully in 4300 ms
Serverless: No external modules needed
Serverless: Copying existing artifacts...
Serverless: Packaging service...
That is all the output that I receveid from the serverless deploy --stage dev
command
Could you try with --verbose
to see more log?
This is a (Bug Report / Feature Proposal)
Description
For bug reports:
module.exports = { entry: slsw.lib.entries, mode: slsw.lib.webpack.isLocal ? "development" : "production", target: "node", externals: [nodeExternals()], plugins: [new webpack.IgnorePlugin({resourceRegExp: /^pg-native$/})], };
custom: webpack: includeModules: true
webpack compiled with 3 warnings in 11270 ms Serverless: Fetch dependency graph from F:\NaN\Courses\Serverless Framework\postgres\services\user-crud\package.json Serverless: No external modules needed Serverless: Zip method used: node WARNING in ../../utils/database/node_modules/any-promise/register.js 24:14-37 Critical dependency: the request of a dependency is an expression @ ../../utils/database/node_modules/any-promise/index.js 1:17-38 @ ../../utils/database/node_modules/retry-as-promised/index.js 3:14-36 @ ../../utils/database/node_modules/sequelize/lib/sequelize.js 5:14-42 @ ../../utils/database/node_modules/sequelize/index.js 8:0-43 @ ../../utils/database/models/User.js 2:20-40 @ ./findAll.js 4:17-60
WARNING in ../../utils/database/node_modules/sequelize/lib/dialects/abstract/connection-manager.js 69:15-63 Critical dependency: the request of a dependency is an expression @ ../../utils/database/node_modules/sequelize/lib/dialects/mariadb/connection-manager.js 4:34-75 @ ../../utils/database/node_modules/sequelize/lib/dialects/mariadb/index.js 5:26-57 @ ../../utils/database/node_modules/sequelize/lib/sequelize.js 322:18-47 @ ../../utils/database/node_modules/sequelize/index.js 8:0-43 @ ../../utils/database/models/User.js 2:20-40 @ ./findAll.js 4:17-60
WARNING in ../../utils/database/node_modules/sequelize/lib/dialects/abstract/connection-manager.js 74:13-32 Critical dependency: the request of a dependency is an expression @ ../../utils/database/node_modules/sequelize/lib/dialects/mariadb/connection-manager.js 4:34-75 @ ../../utils/database/node_modules/sequelize/lib/dialects/mariadb/index.js 5:26-57 @ ../../utils/database/node_modules/sequelize/lib/sequelize.js 322:18-47 @ ../../utils/database/node_modules/sequelize/index.js 8:0-43 @ ../../utils/database/models/User.js 2:20-40 @ ./findAll.js 4:17-60
3 warnings have detailed information that is not shown. Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.
webpack compiled with 3 warnings in 11270 ms Serverless: Fetch dependency graph from F:...\services\user-crud\package.json Serverless: No external modules needed Serverless: Zip method used: node Serverless: Zip method used: node Serverless: Zip function: F:...\services\user-crud.webpack\update [55 ms] Serverless: Zip method used: node Serverless: Zip function: F:...\services\user-crud.webpack\delete [46 ms] Serverless: Zip method used: node Serverless: Zip function: F:...\services\user-crud.webpack\listUsers [46 ms] Serverless: Zip method used: node Serverless: Zip function: F:...\services\user-crud.webpack\listUser [52 ms] Serverless: Copying existing artifacts... Serverless: Setting artifact for function 'createUser' to '.serverless\createUser.zip' Serverless: Setting artifact for function 'update' to '.serverless\update.zip' Serverless: Setting artifact for function 'delete' to '.serverless\delete.zip' Serverless: Setting artifact for function 'listUsers' to '.serverless\listUsers.zip' Serverless: Setting artifact for function 'listUser' to '.serverless\listUser.zip' Serverless: Setting artifact for function 'createUser' to '.serverless\createUser.zip' Serverless: Setting artifact for function 'update' to '.serverless\update.zip' Serverless: Setting artifact for function 'delete' to '.serverless\delete.zip' Serverless: Setting artifact for function 'listUsers' to '.serverless\listUsers.zip' Serverless: Setting artifact for function 'listUser' to '.serverless\listUser.zip' Serverless: Packaging service... Serverless: Remove F:...\services\user-crud.webpack Serverless: Removing F:...\services\user-crud.webpack done