-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Weird Compilation Err in our Application code only in SLS version > 1.43.0 #6211
Comments
_.chain(colorObject) //This is the line error occurs |
Hey @prr19776 thanks for opening 👍 Could you share your |
Im using these 3 plugins
Redacted sls yaml service: ${self:custom.pOwner}-${self:custom.pEnvironment}-lf-vehicle-enricher custom: Mapping with respect to environment specific URL and serverless stage.#----------------------------------------------------------------------------- AWS account Id Map that would be used as a map for forming urns.... Region Map for deployment of lambda functions.#KMS Encryption Key ID EFC Urls by environment.... Media Urls by environment that would be appended to each of the hrefs.... EFC API Key by environment.... VIS Urls by environment.... Log Retention in Cloudwatch.dev-log-retention: 5 Log Level for debug logging.dev-log-level: trace Common Color Name feature indicator by env... #----------------------------------------------------------------------------- Parameter block to define the tagging, naming and billing strategiesfor this template.#----------------------------------------------------------------------------- Log Level - can be any of 'trace', 'debug', 'info', 'warn', 'error'pLogLevel: ${self:custom.${self:custom.pEnvironment}-log-level} Build related pramaters for serverless-build-plugin. Refer to the link below for more detailshttps://github.com/nfour/serverless-build-plugin/blob/master/docs/Install%20&%20Config.mdbuild:
provider: Environment related variables.environment: Tagging for this stack.stackTags: plugins:
functions: |
Just curious why is SLS yml relevant in this case, the compilation itself is failing and its pointing at an obscure place in the code where I'm using Lodash _.chain(obj).keys(obj) But it only fails on > 1.43.0, everything remaining the same its failing on SLS yml and package.json |
Im able to see why this is failing, in the version > 1.43.0 serverless added the "@types/lodash" dependency, which is breaking the code compile. I deleted the "@types/lodash" folder from the node_modules, then my code compiled how do I ensure that this is circumvented? this looks like a breaking change in my opinion |
We are seeing a lot of application errors which were not happening with version < =1.43.0, but when we got the 1.44.1 installed, it threw some weird errors. Not sure what has changed from the SLS perspective
typescript version : "2.9.2"
src/enrichers/xxx.ts(43,3): error TS2554: Expected 0 arguments, but got 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! vehicle-enricher@0.0.1 tsc:
tsc
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the vehicle-enricher@0.0.1 tsc script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: