-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
babel example does not work - syntax error on 'export' #290
Comments
Hi @felzix , thanks for reporting. Did you also try the babel-dynamically-entries example? I will check the files you provided and try to find out what's wrong. |
I also have an issue with the babel example, but I get a different error (I'm not running the example itself) but my own, based on the same
webpack config:
I used the same package version in case of, but... :/ |
@Vadorequest This looks more like a misconfiguration of the function handlers in the If your functions are located in subdirectories, the handler properties should contain the relative path to the handlers but without a preceding |
Edit Not sure if this is still necessary - I had to add this because I needed custom babel plugins that Are all of you using a {
"presets": [
[
"env",
{
"targets": {
"node": "6.10"
}
}
]
]
} Stole / adapted that from here: https://github.com/serverless/serverless-graphql/blob/c78c5f9840d76e9534ea1f15595683e844d2171d/app-backend/appsync/lambda/.babelrc |
@karlhorky Sorry, no. We use the "node6" babel preset in our
To dynamically enable different plugin sets depending on the environment. |
@felzix The old (deprecated) babel example has been removed and is replaced by the dynamic example now. Does that work for you? |
Any update here? If not I'll close the issue soon. |
Closing now. Feel free to continue the discussion if needed. |
This is a Bug Report
Description
I copied the files in the babel example* into a new project, deployed to AWS, then tested the function in the lambda page on AWS. I got a syntax error:
My project, minus node_modules and .serverless: backend.zip
* https://github.com/serverless-heaven/serverless-webpack/tree/master/examples/babel
Additional Data
The text was updated successfully, but these errors were encountered: