File: tsxReactEmit7.errors.txt

package info (click to toggle)
node-typescript 2.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 203,952 kB
  • ctags: 52,987
  • sloc: sh: 11; makefile: 5
file content (50 lines) | stat: -rw-r--r-- 1,905 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
tests/cases/conformance/jsx/file.tsx(9,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(10,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(11,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(12,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(15,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(16,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(17,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(18,10): error TS2304: Cannot find name 'React'.
tests/cases/conformance/jsx/file.tsx(19,10): error TS2304: Cannot find name 'React'.


==== tests/cases/conformance/jsx/file.tsx (9 errors) ====
    
    declare module JSX {
    	interface Element { }
    	interface IntrinsicElements {
    		[s: string]: any;
    	}
    }
    
    var m = <div x-y="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var n = <div xx-y="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var o = <div x-yy="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var p = <div xx-yy="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    
    // Investigation
    var a = <div x="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var b = <div xx="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var c = <div xxx="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var d = <div xxxx="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.
    var e = <div xxxxx="val"></div>;
             ~~~
!!! error TS2304: Cannot find name 'React'.