This repository was archived by the owner on Jan 26, 2019. It is now read-only.
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
TS cannot find module #8
Closed
Description
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):
C:\Users\Eytan\Documents\tickets>npm ls react-scripts
[email protected] C:\Users\Eytan\Documents\tickets
`-- (empty)
npm ERR! code 1
node -v
: v7.3.0npm -v
: 3.10.10
Then, specify:
- Operating system: Windows
- Browser and version: Vivaldi 1.6.689.40 32bits
Reproducible Demo
yarn global add create-react-app
create-react-app my-app --scripts-version=react-scripts-ts
yarn add admin-on-rest
Then if I add this line on my code :
import { simpleRestClient, Admin, Resource } from 'admin-on-rest';
I've got the error
Metadata
Metadata
Assignees
Labels
No labels