-
Notifications
You must be signed in to change notification settings - Fork 491
TS cannot find module #8
Comments
Sorry, this issue is about TS not react-scripts-ts. |
Hi Pierre, no problem! Did you manage to sort it yourself by adding typings? This might raise an interesting addition we could make like the eslint/taking warnings that suggests adding the typings for new packages. Could be useful if there are TS beginners using this. |
I am using Yarn: I had an error that said But it still ran great (to be clear, this error ran inside atom with the atom-typescript plugin) But this fixed it (tsconfig.json):
I am also having an issue with |
I had the same problem as @CraigglesO but I managed to get around it. The only issue have is my IDE keeps telling me that |
Can you reproduce the problem with latest npm?
Yes
Description
When I try to import another library, I've got the error "TS : cannot find module libraryName
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected):node -v
: v7.3.0npm -v
: 3.10.10Then, specify:
Reproducible Demo
Then if I add this line on my code :
import { simpleRestClient, Admin, Resource } from 'admin-on-rest';
I've got the error
The text was updated successfully, but these errors were encountered: