-
Notifications
You must be signed in to change notification settings - Fork 518
ReactRedux configuration doesn't play well with TypeScript tools #1205
Comments
I think the syntax you need to use is something like:
i.e., with a leading However, I'm guessing that you already know this, and the problem you're reporting is that the TypeScript tooling code action is generating the incorrect import. If so, that would be an issue for the TypeScript tooling folks to address. I'll close this since it's not something we can fix in this repo, but please let me know if you think we are doing something wrong in this repo! |
I don't think that adding |
The actual correct relative path will depend on where the file is and where it's being referenced from, of course.
I'm not clear on whether you're saying there's a fault in this repo or not. If you think something is wrong here, can you give an example of what change to the |
Current configuration of ReactRedux project doesn't work well with TypeScript code actions. In my case I have two files:
When I try to add import to LogsList.tsx from OperationLogs.tsx the following line is added:
Visual Studio doesn't show any errors but then when I run application I get such error:
NodeInvocationException: Prerendering failed because of error: Error: Cannot find module "ClientApp/logs/components/LogsList"
I have already reported to TypeScript repository that in such case they could use relative path microsoft/TypeScript#15888 (comment), but it would be nice to have that correctly configured in template.
The text was updated successfully, but these errors were encountered: