Giter VIP home page Giter VIP logo

Comments (5)

momer avatar momer commented on May 12, 2024

Removing the two items in serverless.yml which rely on the handler in versionInfo.js allowed me to build/deploy the others; will dig in a bit more later tonight/this week

momer@ubuntuk:~/aws$ SLS_DEBUG=* serverless deploy -v -f request-logger
Serverless: Injecting Headless Chrome...

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

  ENOENT: no such file or directory, unlink '/home/momer/aws/.build/src/versionInfo.js'

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

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

Error: ENOENT: no such file or directory, unlink '/home/momer/aws/.build/src/versionInfo.js'
    at Error (native)
From previous event:
    at PluginManager.invoke (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:217:22)
    at PluginManager.spawn (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:229:17)
    at Deploy.BbPromise.bind.then.then (/home/momer/.npm-global/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:101:50)
From previous event:
    at Object.before:deploy:deploy [as hook] (/home/momer/.npm-global/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:99:10)
    at BbPromise.reduce (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:217:55)
From previous event:
    at PluginManager.invoke (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:217:22)
    at PluginManager.run (/home/momer/.npm-global/lib/node_modules/serverless/lib/classes/PluginManager.js:236:17)
    at variables.populateService.then (/home/momer/.npm-global/lib/node_modules/serverless/lib/Serverless.js:107: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 (/home/momer/.npm-global/lib/node_modules/serverless/lib/Serverless.js:94:74)
    at serverless.init.then (/home/momer/.npm-global/lib/node_modules/serverless/bin/serverless:32: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:                     linux
     Node Version:           6.11.1
     Serverless Version:     1.17.0

from serverless-chrome.

adieuadieu avatar adieuadieu commented on May 12, 2024

Hi @momer thank you for trying out serverless-chrome! What you've encountered isn't so much an issue/bug but rather just in-progress development. The examples in the develop branch haven't been fully migrated to make use of the npm package and serverless plugin and don't work just yet. Stick to the master branch for working examples, or take a look at the example for using the Serverless plugin here.

Sorry that the examples aren't ready yet! They will be, soon.

from serverless-chrome.

momer avatar momer commented on May 12, 2024

@adieuadieu No worries man, thank you for your work on this; I've started playing with and learning serverless/webpack/babel.

Super excited

from serverless-chrome.

andrhamm avatar andrhamm commented on May 12, 2024

@adieuadieu When I try to implement the example linked in your comment above I am getting the following error:

Serverless plugin "serverless-plugin-chrome" not found. Make sure it's installed and listed in the "plugins" section of your serverless config file.

I have this in my serverless.yml:

plugins:
  - serverless-plugin-chrome

custom:
  chrome:
    functions:
      - streamFunction

In package.json:

"devDependencies": {
    "chrome-launcher": "^0.8.1",
    "serverless": "^1.23.0",
    "serverless-plugin-chrome": "^1.0.0-11"
  },
  "dependencies": {
    "aws-sdk": "^2.133.0"
  }

Using Yarn v1.2.1 and Serverless framework v1.23.0

from serverless-chrome.

sergical avatar sergical commented on May 12, 2024

Hey @adieuadieu, trying to upload the example from the develop branch as well and get the following stack trace error

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.basename (path.js:1355:5)
    at /Users/sergiy/dev/ruutly/ruutly-share-aws/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:196:116
    at Generator.next (<anonymous>)
    at step (/Users/sergiy/dev/ruutly/ruutly-share-aws/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:58:194)
    at /Users/sergiy/dev/ruutly/ruutly-share-aws/examples/serverless-framework/aws/node_modules/serverless-plugin-chrome/dist/index.js:58:367
From previous event:
    at PluginManager.invoke (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:360:22)
    at PluginManager.spawn (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:378:17)
    at Deploy.BbPromise.bind.then.then (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:117:50)
From previous event:
    at Object.before:deploy:deploy [as hook] (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/plugins/deploy/deploy.js:107:10)
    at BbPromise.reduce (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:360:55)
From previous event:
    at PluginManager.invoke (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:360:22)
    at PluginManager.run (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/classes/PluginManager.js:391:17)
    at variables.populateService.then (/Users/sergiy/.nvm/versions/node/v7.9.0/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/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/lib/Serverless.js:86:74)
    at serverless.init.then (/Users/sergiy/.nvm/versions/node/v7.9.0/lib/node_modules/serverless/bin/serverless:39:50)

from serverless-chrome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.