nx-plugins icon indicating copy to clipboard operation
nx-plugins copied to clipboard

Configuration error at 'useDotenv': should be equal to constant

Open Ali-sharafi-git opened this issue 3 years ago • 2 comments

Describe the bug Configuration error at 'useDotenv': should be equal to constant

To Reproduce Steps to reproduce the behavior: "@flowaccount/nx-serverless": "^1.0.0-beta.6"

Screenshots image

Check which provider is affected: [] AWS

Check which framework is affected: [] Nodejs [] Serverless [] Lambda

Additional context There is a line in @flowaccount\nx-serverless\src\utils\serverless.js which sets useDotenv to false. configurationInput.useDotenv = false;

However the only accepted value is true based on this issue

Ali-sharafi-git avatar Jan 17 '22 19:01 Ali-sharafi-git

Could you try 1.1.2 and see? We already moved out of beta

wickstargazer avatar Jan 25 '22 16:01 wickstargazer

I can confirm there is the same error with 1.1.2, and adding useDotenv: true in my serverless.yml didn't fix this, but my environment variables in my .env are working tho

AtlasRW avatar Mar 10 '22 11:03 AtlasRW