Question

Build error while deploying app

Just learning DigitalOceanApp platform and javascript. I’m using an existing open source library (SignalX) and hosting in DigitalOcean app. When it’s building, I see different errors which I don’t see locally. Any idea what the issue could be? An example is

870:14  Error: Type string trivially inferred from a string literal, remove type annotation.  @typescript-eslint/no-inferrable-types
[kha-ching] [2021-12-22 18:47:26] 872:28  Warning: Missing return type on function.  @typescript-eslint/explicit-module-boundary-types

When I run locally using npm run build, I don’t see these errors. I have resolved those, but wanted to see the errors locally itself so that I can resolve those. Thanks in advance


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @anilkuppa,

TypeScript has no type inference configuration.

How is your tslint.json configuration?

I think you need to set no-inferrable-types: false or add ignore-properties to its array.

In this link you have information about it: https://palantir.github.io/tslint/rules/no-inferrable-types/

Hope helps you, Sergio Turpín