This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
ReactRedux configuration doesn't play well with TypeScript tools #1205
Closed
Description
Current configuration of ReactRedux project doesn't work well with TypeScript code actions. In my case I have two files:
- /ClientApp/logs/components/LogsList.tsx
- /ClientApp/logs/components/OperationLogs.tsx
When I try to add import to LogsList.tsx from OperationLogs.tsx the following line is added:
import { LogsList } from 'ClientApp/logs/components/LogsList';
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.
Metadata
Metadata
Assignees
Labels
No labels