serverless-heaven/serverless-webpack

Google plugin crashes during packaging step

HyperBrain opened this issue · 0 comments

This is a Bug Report

Description

When using the webpack plugin (version 3) with a Google project, the Google plugin crashes during the packaging phase.

The reason is, that the webpack plugin does not set an artifact service path (which is needed and evaluated by the Google plugin during its compile step).

$ node node_modules/serverless/bin/serverless package
Serverless: Bundling with Webpack...
Time: 486ms
   Asset     Size  Chunks             Chunk Names
index.js  2.71 kB       0  [emitted]  main
   [0] ./index.js 159 bytes {0} [built]
Serverless: Packaging service...

  Type Error ---------------------------------------------

  Cannot read property 'split' of undefined

The plugin should set the property in case the Google provider is used.

Additional Data

  • Serverless-Webpack Version you're using: 3.0.0-rc.1
  • Webpack version you're using: 3.5.x
  • Serverless Framework Version you're using: 1.20.2
  • Operating System: Windows 10 (but unrelated)
  • Stack Trace (if available):