TS2304: Cannot find name 'RX'.
See original GitHub issueLOVE Resub, want to use it a lot…but am having compilation errors…
I am using ReactXP, which does use typescript.
My imports are like this
import { ComponentBase } from 'resub';
import * as React from 'react'
import { TextInput, View, Text , TouchableHighlight, StyleSheet } from 'react-native'
import TodosStore = require('./TodosStore');
It complains about the View, TextInput, TouchableHighlight tags
<View>
<TextInput/>
</View>
<TouchableHighlight>
<Text></Text>
</TouchableHighlight>
</View>
</View>
Issue Analytics
- State:
- Created 6 years ago
- Comments:13 (1 by maintainers)
Top Results From Across the Web
TS2304: Cannot find name 'Rx' - Stack Overflow
First of all, I'd start with a new ´npm install´. Also I don't know what code editor you're using but probably the most...
Read more >TS2304: Cannot find name 'RX'. · Issue #63 · microsoft/ReSub
LOVE Resub, want to use it a lot.....but am having compilation errors.... I am using ReactXP, which does use typescript.
Read more >[Solved]-TS2304: Cannot find name 'Rx'-rx.js - appsloveworld
Coding example for the question TS2304: Cannot find name 'Rx'-rx.js.
Read more >TypeScript error TS2304 cannot find name require - Edureka
The error that I'm getting is the "TS2304: Cannot find name 'require' " when I attempt to transpile a simple TypeScript Node.js page....
Read more >angular/angular - Gitter
d.ts(258,13): error TS2304: Cannot find name 'Rx'. typings/angular2/angular2.d.ts(1221,138): error TS2304: Cannot find name 'Promise'. typings/angular2/angular2 ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
THANKS A HEAP!
YOU ARE THE MAN!!!
It compiles and works…
One mistake I did was to forget to remove the package-lock.json file… After I did that and then re-did the “npm install”, and “npm run web-watch” (or rn-watch)…it worked.
😃