Base solution for your next web application
Open Closed

Typescript file not able to find dto from service-proxies even though it exists #11155


User avatar
0
jtallon created

What is your product version? 10.2.0 What is your product type? Angular What is product framework type? .net core

I created a simple interface IWorkerInterface where I use a Dto which exists in my service-proxies.

export class UserLookupTableDto implements IUserLookupTableDto

However in VS Code when I go to import that type it tells me "Cannot find name 'UserLookupTableDto'.ts(2304)'

A workaround is to go to another ts file an import the new IWorkerInterface. Once this is done I can successfully fix the import import { UserLookupTableDto } from "@shared/service-proxies/service-proxies";

Can you think of any reason why this might happen? I've run "Restart TS Server" and I've done a bunch of refresh.bat and I've also restarted my machine...


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @jtallon

    As I understand this doesn't cause a runtime error, is that right ? Is this only a development time warning/error ?