-
-
Notifications
You must be signed in to change notification settings - Fork 451
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
SyntaxError: Invalid left-hand side in assignment #846
Comments
I have the same error, does anyone know how to solve it? |
Since the error is because of an environment file in the same folder you run (serverless delpoy), as a workaround, I found another way of setting my environment variables. Be creative in your setup and find your own. |
so one year and still nothing, strong community |
Sorry it was missed, unfortunately I'm the only active maintainer right now (always looking for more!) and maintaining in my free time so I might miss some issues. I could not repro the issue myself from steps above. @pbassut Do you have a minimal repro repo you can share? from the original stacktrace I couldn't see it erroring out in any code in this component (failure seems to originate from |
This issue saved me A LOT of time. Thanks @pbassut . I finally created a script to rename and recreate .env file on every deploy |
Describe the bug
Looks like the tool doesn't play nice when you have an .env variable in the same folder you run
serverless
. I understand there's a way of passing environment variables to the script but for people coming in trying to deploy their existing apps that already use this form of passing parameters might have a bad experience with the tool.Actual behavior
It crashes with:
Expected behavior
I would like for it to read my .env file. But if that's not possible, don't crash on me.
Steps to reproduce
Just have a .env in your folder and run
serverless
Versions
The text was updated successfully, but these errors were encountered: