-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
I am getting this error after following the steps in this repo.
e.CanvasRenderingContext2dInit is not a function
The way I construct my lambda is by bundling with Parcel from the function's entry point, letting it figure out what to bundle, then zipping it and uploading.
My bundle is definitely including a copy of canvas from my local node_modules folder and is very likely the cause of this error.
That said, I am new to lambdas and I find it difficult to infer from the readme how people workaround the issue of excluding the local 'canvas' module from the zip they upload to AWS.
If I managed to finally exclude my local copy of canvas from the zip it, is there a change that const Canvas = require('canvas') won't pick the canvas module from the layer?
Metadata
Metadata
Assignees
Labels
No labels