typescript 'symbol cannot be properly resolved'
Hi,
I'm using ReSharper Ultimate 2016.2.2 and I have an issue in typescript support. I'm writing a React js application and I have this code:
import * as React from "react";
interface IComponentProps<TParams> extends ReactRouter.RouteComponentProps<TParams, {}> { }
class ComponentBase<TParams, TProps> extends React.Component<IComponentProps<TParams> & TProps, {}> { }
class Details extends ComponentBase<{ id: number }, { show: string }> {
render() {
var show = this.props.show;
var id = this.props.params.id;
return (
<div className="container"></div>
);
}
}
When I try access this.props.params.id ReSharper is complaining that "Symbol 'id' cannot be properly resolved, probably it is located in inaccessible module". Typescript compiler is doesn't complain however, and it compiles correctly. When I turn off ReSharper visual studio is also correctly showing this in IntelliSense.
Should this be raised as a bug or maybe I'm doing something wrong?
Regards,
Maciek
Please sign in to leave a comment.
I am using Angular in my project. I created a new project that I could send to you, but the new project does not suffer from the same issue. Is there a setting Resharper is looking for in the project configuration that may be causing this issue?
Hello @...
I don't think so, it may be caused by the code itself or the solution's size. Please consider cropping the original solution instead of creating one form scratch.
I'm rather sure that I had this problem a year ago. I managed to fix it - somehow - but now it's back again. I'm using VS2022 with Resharper 2021.3.EAP10. I can NOT send the project to you, since it's not mine. I tried the fix in https://stackoverflow.com/questions/51931225/resharper-symbol-cannot-be-properly-resolved but that didn't work.
Hello Rainer Prem,
Please try clearing caches for the solution and check that the issue still happens. If so, could you please share screenshots and more details about the issue, since from the report you wrote it's impossible to understand what you have. You can use the "Submit a request" button at the top of the page to share them privately with the ReSharper support team. Thank you.
Hello Akssinc,
Please note that currently, TypeScript support is on pause in ReSharper. The current implementation of TypeScript support has become too outdated for us to keep it up to date with the environment and fix complicated issues. We are looking for a better way to support these web languages, and after a long internal discussion, we've decided to put our current JavaScript and TypeScript support on hold.
Please let me know if you have any more questions.