-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module 's_index' when serverless enterprise is enabled #47
Comments
thanks for the report, I'm a bit busy right now, but I'll check this out once I have some time. One thing to check: do you have any plugin compiling the files into |
I don't have any extra plugins for compiling This is the minimal serverless.yml I used to reproduce it.
As soon as I add
If I remove the edit: without the plugin:
with the plugin enabled:
Original directory:
|
But notice that in your second snippet you no longer have the |
Because i created a new project with just a single js file. It's not about
the compilation, its about the injected wrapper by the serverless framework
which gets stripped from the final package.
…On Tue, Nov 10, 2020, 6:43 PM Sérgio Ramos ***@***.***> wrote:
But notice that in your second snippet you no longer have the dist/ in
the handler. Any reason why?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#47 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAO5GEVYFMGIJZM27QV7BULSPFUSZANCNFSM4TPSASTQ>
.
|
This is my serverless.yml file:
The deployed Lamba's entry point gets set to
s_index.handler
, but whenserverless-plugin-tree-shake
is enabled, that file is not present in the deployment.The text was updated successfully, but these errors were encountered: