netlify-functions-headless-chrome icon indicating copy to clipboard operation
netlify-functions-headless-chrome copied to clipboard

iltorb?

Open marcosscriven opened this issue 4 years ago • 0 comments

When I try this snippet, I get the following error when running netlify-lambda:

resolve 'iltorb' in '/node_modules/chrome-aws-lambda/source'
  Parsed request is a module
  using description file: /node_modules/chrome-aws-lambda/package.json (relative path: ./source)
    resolve as module

So I install that module, but then I get this instead:

ERROR in ../node_modules/chrome-aws-lambda/source/iltorb/build/bindings/iltorb.node 1:0
Module parse failed: Unexpected character '' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
 @ ../node_modules/chrome-aws-lambda/source/iltorb/index.js 10:39-78
 @ ../node_modules/chrome-aws-lambda/source/index.js
 @ ./test.js

ERROR in ../node_modules/iltorb/build/bindings/iltorb.node 1:0
Module parse failed: Unexpected character '�' (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
 @ ../node_modules/iltorb/index.js 10:39-78
 @ ../node_modules/chrome-aws-lambda/source/index.js
 @ ./test.js
Lambda server is listening on 9000

I see the same question was posed at https://community.netlify.com/t/chrome-aws-lambda-trouble-importing/2664

marcosscriven avatar Aug 15 '19 13:08 marcosscriven