Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript Support Not Working #681

Closed
sebastianmacias opened this issue Jan 8, 2017 · 7 comments
Closed

TypeScript Support Not Working #681

sebastianmacias opened this issue Jan 8, 2017 · 7 comments
Labels

Comments

@sebastianmacias
Copy link

Before submitting an issue please:

  • Check that you are using the latest version of Inferno. Either using our CDN @ Master or by checking the tags on NPM.
  • Check that the bug has not been fixed in the latest development version. Use our CDN @ Edge.
  • Check that the issue has not been brought up before on Github issues.

If you can, please distill your problem down and include a JSFiddle example for illustration.


Issue Template

Observed Behaviour

Inferno is not letting us use it in typescript applications.

Expected Current Behaviour

In my opinion Inferno it should be "typescript first" even "typescript only" just like Angular 2 since it's written in typescript.

Inferno Metadata
Ubuntu 16.04

dev@DevX:~/inferno-test/inferno-typescript-example$ node --version
v5.12.0
dev@DevX:~/inferno-test/inferno-typescript-example$ npm --version
4.0.5
dev@DevX:~/inferno-test/inferno-typescript-example$ npm install
[email protected] /home/dev/inferno-test/inferno-typescript-example
├─┬ [email protected] 
│ └─┬ [email protected] 
│   └─┬ [email protected] 
│     ├── [email protected] 
│     ├─┬ [email protected] 
│     │ └── [email protected] 
│     ├─┬ [email protected] 
│     │ └─┬ [email protected] 
│     │   ├── [email protected] 
│     │   └── [email protected] 
│     └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├─┬ [email protected] 
│ │ │ │ │ └─┬ [email protected] 
│ │ │ │ │   ├── [email protected] 
│ │ │ │ │   └── [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ ├── [email protected] 
│ │ │ │ └─┬ [email protected] 
│ │ │ │   └── [email protected] 
│ │ │ └── [email protected] 
│ │ └── [email protected] 
│ └── [email protected] 
├── [email protected] 
├── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ └─┬ [email protected] 
│   └── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ └── [email protected] 
├── [email protected] 
├─┬ [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └─┬ [email protected] 
│ │ │   └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ ├─┬ [email protected] 
│ │ │ │ └── [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ ├── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ ├── [email protected] 
│ │ │ └── [email protected] 
│ │ ├─┬ [email protected] 
│ │ │ └── [email protected] 
│ │ └─┬ [email protected] 
│ │   └── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├─┬ [email protected] 
│ │ └── [email protected] 
│ ├── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   ├── [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ ├─┬ [email protected] 
│ │   │ │ ├─┬ [email protected] 
│ │   │ │ │ ├── [email protected] 
│ │   │ │ │ └── [email protected] 
│ │   │ │ └── [email protected] 
│ │   │ └── [email protected] 
│ │   ├── [email protected] 
│ │   └── [email protected] 
│ ├─┬ [email protected] 
│ │ ├── [email protected] 
│ │ └─┬ [email protected] 
│ │   ├── [email protected] 
│ │   ├── [email protected] 
│ │   ├── [email protected] 
│ │   ├─┬ [email protected] 
│ │   │ └── [email protected] 
│ │   ├── [email protected] 
│ │   └─┬ [email protected] 
│ │     ├─┬ [email protected] 
│ │     │ └── [email protected] 
│ │     └── [email protected] 
│ └─┬ [email protected] 
│   ├── [email protected] 
│   └── [email protected] 
└─┬ [email protected] 
  ├─┬ [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ ├── [email protected] 
  │ └── [email protected] 
  ├── [email protected] 
  ├─┬ [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ ├── [email protected] 
  │ │ └── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ ├── [email protected] 
  │ │ └── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ └── [email protected] 
  ├─┬ [email protected] 
  │ ├─┬ [email protected] 
  │ │ ├── [email protected] 
  │ │ └── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ └─┬ [email protected] 
  │   ├─┬ [email protected] 
  │   │ └── [email protected] 
  │   ├── [email protected] 
  │   ├─┬ [email protected] 
  │   │ ├─┬ [email protected] 
  │   │ │ └─┬ [email protected] 
  │   │ │   ├── [email protected] 
  │   │ │   ├─┬ [email protected] 
  │   │ │   │ └── [email protected] 
  │   │ │   └── [email protected] 
  │   │ ├── [email protected] 
  │   │ └── [email protected] 
  │   ├─┬ [email protected] 
  │   │ └── [email protected] 
  │   ├── [email protected] 
  │   ├── [email protected] 
  │   ├── [email protected] 
  │   ├─┬ [email protected] 
  │   │ └── [email protected] 
  │   ├── [email protected] 
  │   ├─┬ [email protected] 
  │   │ ├─┬ [email protected] 
  │   │ │ └── [email protected] 
  │   │ └── [email protected] 
  │   ├─┬ [email protected] 
  │   │ ├── [email protected] 
  │   │ └── [email protected] 
  │   └─┬ [email protected] 
  │     ├── [email protected] 
  │     └── [email protected] 
  ├── [email protected] 
  ├─┬ [email protected] 
  │ ├── [email protected] 
  │ ├─┬ [email protected] 
  │ │ └── [email protected] 
  │ └── [email protected] 
  ├─┬ [email protected] 
  │ ├─┬ [email protected] 
  │ │ └─┬ [email protected] 
  │ │   └── [email protected] 
  │ └── [email protected] 
  ├─┬ [email protected] 
  │ ├─┬ [email protected] 
  │ │ └─┬ [email protected] 
  │ │   └── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ ├── [email protected] 
  │ └─┬ [email protected] 
  │   └── [email protected] 
  ├── [email protected] 
  ├─┬ [email protected] 
  │ └── [email protected] 
  └─┬ [email protected] 
    ├─┬ [email protected] 
    │ └─┬ [email protected] 
    │   └── [email protected] 
    ├── [email protected] 
    └── [email protected] 

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN [email protected] No repository field.
dev@DevX:~/inferno-test/inferno-typescript-example$ 
dev@DevX:~/inferno-test/inferno-typescript-example$ npm run start

> [email protected] start /home/dev/inferno-test/inferno-typescript-example
> webpack-dev-server --inline

clean-webpack-plugin: /home/dev/inferno-test/inferno-typescript-example/dist has been removed.
 http://localhost:8080/
webpack result is served from /
content is served from dist/
404s will fallback to /index.html
ts-loader: Using [email protected] and /home/dev/inferno-test/inferno-typescript-example/tsconfig.json
Hash: 015f9279c1dd0cca84f3
Version: webpack 1.14.0
Time: 2519ms
        Asset       Size  Chunks             Chunk Names
    bundle.js     351 kB       0  [emitted]  main
bundle.js.map     409 kB       0  [emitted]  main
   index.html  172 bytes          [emitted]  
chunk    {0} bundle.js, bundle.js.map (main) 328 kB [rendered]
    [0] multi main 40 bytes {0} [built]
    [1] (webpack)-dev-server/client?http://localhost:8080 3.97 kB {0} [built]
    [2] ./~/url/url.js 23.3 kB {0} [built]
    [3] ./~/url/~/punycode/punycode.js 14.6 kB {0} [built]
    [4] (webpack)/buildin/module.js 251 bytes {0} [built]
    [5] ./~/url/util.js 314 bytes {0} [built]
    [6] ./~/querystring/index.js 127 bytes {0} [built]
    [7] ./~/querystring/decode.js 2.4 kB {0} [built]
    [8] ./~/querystring/encode.js 2.09 kB {0} [built]
    [9] ./~/strip-ansi/index.js 161 bytes {0} [built]
   [10] ./~/ansi-regex/index.js 135 bytes {0} [built]
   [11] (webpack)-dev-server/client/socket.js 856 bytes {0} [built]
   [12] ./~/sockjs-client/lib/entry.js 244 bytes {0} [built]
   [13] ./~/sockjs-client/lib/transport-list.js 613 bytes {0} [built]
   [14] ./~/sockjs-client/lib/transport/websocket.js 2.71 kB {0} [built]
   [15] ./~/process/browser.js 5.3 kB {0} [built]
   [16] ./~/sockjs-client/lib/utils/event.js 2 kB {0} [built]
   [17] ./~/sockjs-client/lib/utils/random.js 746 bytes {0} [built]
   [18] ./~/sockjs-client/lib/utils/browser-crypto.js 438 bytes {0} [built]
   [19] ./~/sockjs-client/lib/utils/url.js 975 bytes {0} [built]
   [20] ./~/url-parse/index.js 9.92 kB {0} [built]
   [21] ./~/requires-port/index.js 753 bytes {0} [built]
   [22] ./~/url-parse/lolcation.js 1.58 kB {0} [built]
   [23] ./~/querystringify/index.js 1.3 kB {0} [built]
   [24] ./~/debug/browser.js 3.76 kB {0} [built]
   [25] ./~/debug/debug.js 4.1 kB {0} [built]
   [26] ./~/ms/index.js 2.33 kB {0} [built]
   [27] ./~/inherits/inherits_browser.js 672 bytes {0} [built]
   [28] ./~/sockjs-client/lib/event/emitter.js 1.27 kB {0} [built]
   [29] ./~/sockjs-client/lib/event/eventtarget.js 1.85 kB {0} [built]
   [30] ./~/sockjs-client/lib/transport/browser/websocket.js 172 bytes {0} [built]
   [31] ./~/sockjs-client/lib/transport/xhr-streaming.js 1.25 kB {0} [built]
   [32] ./~/sockjs-client/lib/transport/lib/ajax-based.js 1.31 kB {0} [built]
   [33] ./~/sockjs-client/lib/transport/lib/sender-receiver.js 1.15 kB {0} [built]
   [34] ./~/sockjs-client/lib/transport/lib/buffered-sender.js 2.3 kB {0} [built]
   [35] ./~/sockjs-client/lib/transport/lib/polling.js 1.32 kB {0} [built]
   [36] ./~/sockjs-client/lib/transport/receiver/xhr.js 1.58 kB {0} [built]
   [37] ./~/sockjs-client/lib/transport/sender/xhr-cors.js 343 bytes {0} [built]
   [38] ./~/sockjs-client/lib/transport/browser/abstract-xhr.js 4.8 kB {0} [built]
   [39] ./~/sockjs-client/lib/transport/sender/xhr-local.js 352 bytes {0} [built]
   [40] ./~/sockjs-client/lib/utils/browser.js 560 bytes {0} [built]
   [41] ./~/sockjs-client/lib/transport/xdr-streaming.js 984 bytes {0} [built]
   [42] ./~/sockjs-client/lib/transport/sender/xdr.js 2.46 kB {0} [built]
   [43] ./~/sockjs-client/lib/transport/eventsource.js 766 bytes {0} [built]
   [44] ./~/sockjs-client/lib/transport/receiver/eventsource.js 1.58 kB {0} [built]
   [45] ./~/sockjs-client/lib/transport/browser/eventsource.js 37 bytes {0} [built]
   [46] ./~/sockjs-client/lib/transport/lib/iframe-wrap.js 981 bytes {0} [built]
   [47] ./~/sockjs-client/lib/transport/iframe.js 3.83 kB {0} [built]
   [48] ./~/json3/lib/json3.js 43.3 kB {0} [built]
   [49] (webpack)/buildin/amd-options.js 43 bytes {0} [built]
   [50] ./~/sockjs-client/lib/version.js 26 bytes {0} [built]
   [51] ./~/sockjs-client/lib/utils/iframe.js 5.06 kB {0} [built]
   [52] ./~/sockjs-client/lib/utils/object.js 532 bytes {0} [built]
   [53] ./~/sockjs-client/lib/transport/htmlfile.js 710 bytes {0} [built]
   [54] ./~/sockjs-client/lib/transport/receiver/htmlfile.js 2.2 kB {0} [built]
   [55] ./~/sockjs-client/lib/transport/xhr-polling.js 894 bytes {0} [built]
   [56] ./~/sockjs-client/lib/transport/xdr-polling.js 712 bytes {0} [built]
   [57] ./~/sockjs-client/lib/transport/jsonp-polling.js 1.02 kB {0} [built]
   [58] ./~/sockjs-client/lib/transport/receiver/jsonp.js 5.57 kB {0} [built]
   [59] ./~/sockjs-client/lib/transport/sender/jsonp.js 2.46 kB {0} [built]
   [60] ./~/sockjs-client/lib/main.js 11.9 kB {0} [built]
   [61] ./~/sockjs-client/lib/shims.js 18.2 kB {0} [built]
   [62] ./~/sockjs-client/lib/utils/escape.js 2.31 kB {0} [built]
   [63] ./~/sockjs-client/lib/utils/transport.js 1.35 kB {0} [built]
   [64] ./~/sockjs-client/lib/utils/log.js 450 bytes {0} [built]
   [65] ./~/sockjs-client/lib/event/event.js 477 bytes {0} [built]
   [66] ./~/sockjs-client/lib/location.js 177 bytes {0} [built]
   [67] ./~/sockjs-client/lib/event/close.js 295 bytes {0} [built]
   [68] ./~/sockjs-client/lib/event/trans-message.js 292 bytes {0} [built]
   [69] ./~/sockjs-client/lib/info-receiver.js 2.22 kB {0} [built]
   [70] ./~/sockjs-client/lib/transport/sender/xhr-fake.js 456 bytes {0} [built]
   [71] ./~/sockjs-client/lib/info-iframe.js 1.52 kB {0} [built]
   [72] ./~/sockjs-client/lib/info-iframe-receiver.js 791 bytes {0} [built]
   [73] ./~/sockjs-client/lib/info-ajax.js 1.03 kB {0} [built]
   [74] ./~/sockjs-client/lib/iframe-bootstrap.js 2.9 kB {0} [built]
   [75] ./~/sockjs-client/lib/facade.js 723 bytes {0} [built]
   [76] ./src/index.ts 902 bytes {0} [built] [1 error]
   [77] ./~/inferno/inferno.js 89 bytes {0} [built]
   [78] ./~/inferno/dist/inferno.node.js 89.5 kB {0} [built]
   [79] ./~/inferno-component/inferno-component.js 110 bytes {0} [built]
   [80] ./~/inferno/dist/inferno-component.node.js 11.2 kB {0} [built]
   [81] ./~/inferno-create-element/inferno-create-element.js 110 bytes {0} [built]
   [82] ./~/inferno/dist/inferno-create-element.node.js 4.04 kB {0} [built]

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(22,30): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(23,23): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(24,74): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(25,33): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(31,20): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(36,14): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(37,19): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(40,17): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(52,28): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(53,27): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(54,26): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(55,27): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(56,29): error TS1110: Type expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(120,26): error TS1005: '{' expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(121,32): error TS1005: '{' expected.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(36,14): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(37,19): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(36,14): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(40,17): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(52,28): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(53,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(54,26): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(55,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(56,29): error TS2300: Duplicate identifier 'null'.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(31,20): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(36,14): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(37,19): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(40,17): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(51,27): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(52,28): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(53,27): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(54,26): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(55,27): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(56,29): error TS7008: Member 'null' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,30): error TS7006: Parameter 'flags' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,37): error TS7006: Parameter 'type' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,44): error TS7006: Parameter 'props' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,52): error TS7006: Parameter 'children' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,63): error TS7006: Parameter 'events' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,72): error TS7006: Parameter 'key' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(59,78): error TS7006: Parameter 'ref' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(60,18): error TS7010: 'cloneVNode', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(60,29): error TS7006: Parameter 'node' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(60,35): error TS7006: Parameter 'props' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(60,43): error TS7019: Rest parameter 'children' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(61,18): error TS7010: 'render', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(61,25): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(62,18): error TS7010: 'enableFindDOMNode', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(64,18): error TS7010: 'createRenderer', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(64,33): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(65,18): error TS7010: 'linkEvent', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(65,28): error TS7006: Parameter 'data' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(66,15): error TS7005: Variable 'NO_OP' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(67,15): error TS7005: Variable 'ERROR_MSG' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(68,15): error TS7005: Variable 'EMPTY_OBJ' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(101,3): error TS7008: Member '_vNode' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(103,27): error TS7006: Parameter 'context' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(104,3): error TS7010: 'componentWillReact', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(106,3): error TS7010: 'componentWillUnmount', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(116,18): error TS7010: 'renderToString', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(116,33): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(117,19): error TS7010: 'renderToStaticMarkup', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(117,40): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(120,18): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(121,24): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(130,68): error TS7019: Rest parameter 'children' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(134,61): error TS7019: Rest parameter 'children' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(145,39): error TS7006: Parameter 'inst' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(146,47): error TS7006: Parameter 'inst' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(154,18): error TS7010: 'mockComponent', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(154,32): error TS7006: Parameter 'componentClass' implicitly has an 'any' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(191,11): error TS7010: 'pathToRegExp', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(196,11): error TS7010: 'concatStream', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(201,18): error TS7010: 'createBrowserHistory', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(202,18): error TS7010: 'createMemoryHistory', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(209,35): error TS7019: Rest parameter 'rest' implicitly has an 'any[]' type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(213,3): error TS7010: 'runReaction', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(214,3): error TS7010: 'dispose', which lacks return-type annotation, implicitly has an 'any' return type.

ERROR in /home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts
(228,15): error TS7005: Variable 'assert' implicitly has an 'any' type.

ERROR in ./src/index.ts
(1,26): error TS2656: Exported external package typings file '/home/dev/inferno-test/inferno-typescript-example/node_modules/inferno/inferno.d.ts' is not a module. Please contact the package author to update the package definition.
Child html-webpack-plugin for "index.html":
    chunk    {0} index.html 540 kB [rendered]
        [0] ./~/html-webpack-plugin/lib/loader.js!./src/index.html 482 bytes {0} [built]
        [1] ./~/lodash/lodash.js 540 kB {0} [built]
        [2] (webpack)/buildin/module.js 251 bytes {0} [built]
webpack: bundle is now VALID.
@sebastianmacias sebastianmacias changed the title TypeScript Support TypeScript Support Not Working Jan 8, 2017
@sebastianmacias
Copy link
Author

Tested with current latest master commit, same results.

@robertknight
Copy link

You are using an old version of TypeScript (1.8) which lacks support for some of the language features used in Infero's type definitions. You'll need to update to TS 2.0 or later.

@oreqizer
Copy link
Contributor

oreqizer commented Jan 8, 2017

also, you have to turn noImplicitAny off.

@Havunen
Copy link
Member

Havunen commented Jan 8, 2017

This issue should be resolved now using latest version: 1.1.1

@Havunen Havunen closed this as completed Jan 8, 2017
@screendriver
Copy link

also, you have to turn noImplicitAny off.

and how can I solve this when I have noImplicitAny turned on in my project?

@Havunen
Copy link
Member

Havunen commented Feb 6, 2017

@screendriver at the moment its not possible, I know @longlho is working on better typescript support, related ticket: #798 and #686 start of implementation PR: #800 this is open source project so if you can help with this it would be awesome. Lets continue discussion on another thread anyway.

@screendriver
Copy link

Thank you very much for that quick response and your help 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

5 participants