You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It generates a weird "" in dependencies, and the problem still persists even if I exclude "" from serverless.yml or webpack-config.js
Making a node_modules manually won't help either, because webpack (or serverless) removes the directory when packing.
Could be related to #497.
What did you expect should have happened?
Pack successfully.
Is there any chance you create a minimal repo with a reproduction of the bug? It'll help us investigate.
Sorry for the late reply.
After some investigation, I think I found the cause. The problem is I am trying to import dependency which is installed on efs.
I have to use tensorflow-js on lmabda, which contains some native binaries to accelerate inferences.
According to the guide provided by AWS, I will have to first create an amazon linux2 instance, install the tfjs to somewhere, then let lambda import the module from the install location.
In my case I install tfjs to efs. But this make webpack fails for some reason.
This is a Bug Report
Description
Deploying the entire stage works as expected.
However, when I tried to deploy a single function, which depends only on aws-api, it throws the error below:
The
package.json
under.webpack/dependencies
:It generates a weird "" in dependencies, and the problem still persists even if I exclude "" from
serverless.yml
orwebpack-config.js
Making a
node_modules
manually won't help either, because webpack (or serverless) removes the directory when packing.Could be related to #497.
What did you expect should have happened?
Pack successfully.
What was the config you used?
serverless.yml
:webpack-config.js
:As above.
Additional Data
Serverless-Webpack Version you're using:
5.14.1
Webpack version you're using:
5.92.1
Serverless Framework Version you're using:
3.39.0
Operating System:
Windows 11
Stack Trace (if available):
As above.
The text was updated successfully, but these errors were encountered: