question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TS2304: Cannot find name 'RX'.

See original GitHub issue

LOVE 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:closed
  • Created 6 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
MartinOrtizcommented, Mar 17, 2018

THANKS A HEAP!

1reaction
MartinOrtizcommented, Mar 17, 2018

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.

😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found