netlify-functions-headless-chrome
netlify-functions-headless-chrome copied to clipboard
iltorb?
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