question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue requiring serverless-plugin-chrome

See original GitHub issue

Thanks @adieuadieu for your work on serverless-chrome! I’m new to serverless and I’m having an issue that I’m not sure how to resolve. I’d like to use serverless-plugin-chrome along with the serverless-offline plugin.

The plugins entry in my serverless.yml looks like this:

plugins:
  - serverless-plugin-chrome
  - serverless-offline

I’ve tried reversing the order, but that seems to have no effect. Can you offer any advise? Let me know if I can provide any other information that’d be helpful to you. Thanks!

I’ve triple-checked that I have installed serverless-plugin-chrome via yarn add --dev serverless-plugin-chrome.

Version info

OS:                     darwin
Node Version:           8.1.3
Serverless Version:     1.17.0
serverless-plugin-chrome Version: 1.0.0-7
serverless-offline Version: 3.15.0

Stack trace:

➜  serverless-exports SLS_DEBUG=* sls offline start --port 3001

  Error --------------------------------------------------

  Cannot find module 'serverless-plugin-chrome'

     For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.

  Stack Trace --------------------------------------------

Error: Cannot find module 'serverless-plugin-chrome'
    at Function.Module._resolveFilename (module.js:485:15)
    at Function.Module._load (module.js:437:25)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at plugins.forEach (/Users/Ben/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:65:22)
    at Array.forEach (native)
    at PluginManager.loadPlugins (/Users/Ben/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:64:13)
    at PluginManager.loadServicePlugins (/Users/Ben/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:91:10)
    at PluginManager.loadAllPlugins (/Users/Ben/.config/yarn/global/node_modules/serverless/lib/classes/PluginManager.js:60:10)
    at service.load.then (/Users/Ben/.config/yarn/global/node_modules/serverless/lib/Serverless.js:72:28)
    at <anonymous>
From previous event:
    at runCallback (timers.js:800:20)
    at tryOnImmediate (timers.js:762:5)
    at processImmediate [as _immediateCallback] (timers.js:733:5)
From previous event:
    at __dirname (/Users/Ben/.config/yarn/global/node_modules/serverless/bin/serverless:20:28)
    at Object.<anonymous> (/Users/Ben/.config/yarn/global/node_modules/serverless/bin/serverless:36:4)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Function.Module.runMain (module.js:605:10)
    at startup (bootstrap_node.js:158:16)
    at bootstrap_node.js:575:3

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
benjaminwoodcommented, Jul 6, 2017

👍 I’ll close this out now.

Ps. I’ve got a PR coming your way for another small bugfix.

0reactions
adieuadieucommented, Jul 6, 2017

Great! Glad to hear it works for you now. I’m occasionally on Gitter, but not very active.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Serverless deploy issue with Headless chrome
HI I m using serverless-plugin-chrome with nodejs8.10. I am facing below issue when I am deploying using serverless deploy -v
Read more >
serverless-plugin-chrome - npm
A Serverless-framework plugin that takes care of running headless Chrome so that you can move on with getting things done.
Read more >
@serverless-chrome/lambda - npm package | Snyk
Run headless Chrome/Chromium on AWS Lambda For more information about how to use this package see README. Latest version published 2 years ago....
Read more >
Get an empty webpage when running Chromeless on AWS ...
I want to use the Node.js package Chromeless on a AWS Lambda function. I use two packages: chromless and serverless-chrome On my local...
Read more >
Running Headless Chrome with AWS Lambda Layers
Learn how to run Chrome headless in AWS lambda via Puppeteer in a serverless ... Here are all the settings required for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found