ReactRedux configuration doesn't play well with TypeScript tools #493

Closed
opened 2025-08-09 17:16:30 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @rosieks on 8/18/2017

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 https://github.com/Microsoft/TypeScript/issues/15888#issuecomment-323339210, but it would be nice to have that correctly configured in template.

*Originally created by @rosieks on 8/18/2017* 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 https://github.com/Microsoft/TypeScript/issues/15888#issuecomment-323339210, but it would be nice to have that correctly configured in template.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#493
No description provided.