securingsincity / react-ace

React Ace Component

Home Page:http://securingsincity.github.io/react-ace/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tips for getting typescript project to work

kaphula opened this issue · comments

Hey,

I created a new react typescript project with yarn create react-app my-app --template typescript and installed dependencies: react-ace and ace-builds. Then I created a component where I used the AceEditor component. However when I try to run the program I get this error on the browser:

Compiled with problems:X

ERROR in ./src/Editor.tsx 9:0-40

Module not found: Error: Can't resolve 'react-ace/types' in 'project_root/src'

Any tips how to fix this?