I’m using the develop branch to try and deploy examples/serverless-framework/aws and am getting this error, any advice,
➜ aws git:(develop) ✗ sls deploy -v
Serverless: Load command run
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command emit
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command webpack
Serverless: Load command webpack:invoke
Serverless: Load command webpack:watch
Serverless: Load command webpack:serve
Serverless: WARNING: Plugin ServerlessWebpack uses deprecated hook before:deploy:createDeploymentArtifacts,
use package:createDeploymentArtifacts hook instead
Serverless: WARNING: Plugin ServerlessWebpack uses deprecated hook after:deploy:createDeploymentArtifacts,
use package:createDeploymentArtifacts hook instead
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Injecting Headless Chrome...
Serverless: Bundling with Webpack...
Time: 1174ms
Asset Size Chunks Chunk Names
src/handlers/screenshot.js 381 kB 0 [emitted] [big] src/handlers/screenshot
src/handlers/pdf.js 384 kB 1 [emitted] [big] src/handlers/pdf
src/handlers/version.js 378 kB 2 [emitted] [big] src/handlers/version
src/handlers/requestLogger.js 378 kB 3 [emitted] [big] src/handlers/requestLogger
src/handlers/screenshot.js.map 470 kB 0 [emitted] src/handlers/screenshot
src/handlers/pdf.js.map 476 kB 1 [emitted] src/handlers/pdf
src/handlers/version.js.map 467 kB 2 [emitted] src/handlers/version
src/handlers/requestLogger.js.map 468 kB 3 [emitted] src/handlers/requestLogger
[1] external "events" 42 bytes {0} {1} {2} {3} [not cacheable]
[8] ./node_modules/chrome-remote-interface/lib/devtools.js 4.44 kB {0} {1} {2} {3} [built]
[17] ./src/utils/log.js 199 bytes {0} {1} {2} [built]
[18] ./node_modules/chrome-remote-interface/index.js 1.2 kB {0} {1} {2} {3} [built]
[19] ./node_modules/chrome-remote-interface/lib/external-request.js 718 bytes {0} {1} {2} {3} [built]
[21] ./node_modules/chrome-remote-interface/lib/chrome.js 10.5 kB {0} {1} {2} {3} [built]
[30] ./node_modules/chrome-remote-interface/lib/api.js 2.61 kB {0} {1} {2} {3} [built]
[31] ./src/utils/sleep.js 217 bytes {0} {1} [built]
[32] ./src/handlers/version.js 1.44 kB {2} [built]
[33] ./src/chrome/version.js 1.01 kB {2} [built]
[34] ./src/handlers/requestLogger.js 2.5 kB {3} [built]
[35] ./src/handlers/screenshot.js 1.67 kB {0} [built]
[36] ./src/chrome/screenshot.js 3.03 kB {0} [built]
[37] ./src/handlers/pdf.js 2.33 kB {1} [built]
[38] ./src/chrome/pdf.js 6.13 kB {1} [built]
+ 24 hidden modules
WARNING in ./node_modules/ws/lib/BufferUtil.js
Module not found: Error: Can't resolve 'bufferutil' in '/Users/mark/dev/repos/serverless-chrome/examples/serverless-framework/aws/node_modules/ws/lib'
@ ./node_modules/ws/lib/BufferUtil.js 35:21-42
@ ./node_modules/ws/lib/Receiver.js
@ ./node_modules/ws/index.js
@ ./node_modules/chrome-remote-interface/lib/chrome.js
@ ./node_modules/chrome-remote-interface/index.js
@ ./src/handlers/requestLogger.js
WARNING in ./node_modules/ws/lib/Validation.js
Module not found: Error: Can't resolve 'utf-8-validate' in '/Users/mark/dev/repos/serverless-chrome/examples/serverless-framework/aws/node_modules/ws/lib'
@ ./node_modules/ws/lib/Validation.js 10:22-47
@ ./node_modules/ws/lib/Receiver.js
@ ./node_modules/ws/index.js
@ ./node_modules/chrome-remote-interface/lib/chrome.js
@ ./node_modules/chrome-remote-interface/index.js
@ ./src/handlers/requestLogger.js
Serverless: Zip service: /Users/mark/dev/repos/serverless-chrome/examples/serverless-framework/aws/.build/.webpack/service [138 ms]
Serverless: Packaging service...
Type Error ---------------------------------------------
Path must be a string. Received undefined
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.basename (path.js:1362:5)
at /Users/mark/dev/repos/serverless-chrome/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:196:116
at next (native)
at step (/Users/mark/dev/repos/serverless-chrome/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:58:194)
at /Users/mark/dev/repos/serverless-chrome/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:58:367
From previous event:
at PluginManager.invoke (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/classes/PluginManager.js:360:22)
at PluginManager.spawn (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/classes/PluginManager.js:378:17)
at Deploy.BbPromise.bind.then.then (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:117:50)
From previous event:
at Object.before:deploy:deploy [as hook] (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:107:10)
at BbPromise.reduce (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/classes/PluginManager.js:360:55)
From previous event:
at PluginManager.invoke (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/classes/PluginManager.js:360:22)
at PluginManager.run (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/classes/PluginManager.js:391:17)
at variables.populateService.then (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/Serverless.js:99:33)
at runCallback (timers.js:672:20)
at tryOnImmediate (timers.js:645:5)
at processImmediate [as _immediateCallback] (timers.js:617:5)
From previous event:
at Serverless.run (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/lib/Serverless.js:86:74)
at serverless.init.then (/Users/mark/.nvm/versions/node/v6.11.3/lib/node_modules/serverless/bin/serverless:39:50)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: darwin
Node Version: 6.11.3
Serverless Version: 1.23.0