Skip to content

Instantly share code, notes, and snippets.

View DimaDaxDadeco's full-sized avatar

DimaDaxDadeco

View GitHub Profile
ERROR in /media/dax/Новый том/projects/Cian/front/frontend-mainpage/src/app/tests/mainpage_helper.test.ts
(25,13): error TS2322: Type '{ groups: { id: string; title: string; offers: { title: string; price: { amount: number; }; price...' is not assignable to type 'ITopThreeItem[]'.
Type '{ groups: { id: string; title: string; offers: { title: string; price: { amount: number; }; price...' is not assignable to type 'ITopThreeItem'.
Types of property 'groups' are incompatible.
Type '{ id: string; title: string; offers: { title: string; price: { amount: number; }; priceAmount: nu...' is not assignable to type 'ITopGroup[] | undefined'.
Type '{ id: string; title: string; offers: { title: string; price: { amount: number; }; priceAmount: nu...' is not assignable to type 'ITopGroup[]'.
Type '{ id: string; title: string; offers: { title: string; price: { amount: number; }; priceAmount: nu...' is not assignable to type 'ITopGroup'.
Property 'trackingProductData' is missing in ty
["new NodeResponse (/media/dax/Новый том/projects/Cian/front/frontend-mainpage/node_modules/@cian/network-framework/lib/node/node_client.js:86:35)","ClientRequest.<anonymous> (/media/dax/Новый том/projects/Cian/front/frontend-mainpage/node_modules/@cian/network-framework/lib/node/node_client.js:35:36)","ClientRequest.g (events.js:260:16)","emitOne (events.js:77:13)","ClientRequest.emit (events.js:169:7)","HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:414:21)","HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)","Socket.socketOnData (_http_client.js:304:20)","emitOne (events.js:77:13)","Socket.emit (events.js:169:7)","readableAddChunk (_stream_readable.js:146:16)","Socket.Readable.push (_stream_readable.js:110:10)","TCP.onread (net.js:523:20)"]
npm ERR! Linux 4.8.0-36-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "login" "--registry=http://192.168.16.161:8484/repository/npm_private/" "--scope=@cian"
npm ERR! node v7.5.0
npm ERR! npm v4.1.2
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! syscall connect
npm ERR! network connect ETIMEDOUT 192.168.16.161:8484
npm ERR! network This is most likely not a problem with npm itself
Warning: Each child in an array or iterator should have a unique "key" prop. Check the top-level render call using <div>. See https://fb.me/react-warning-keys for more information.
in Link
in Unknown (created by Unknown)
in div (created by Unknown)
in div (created by Unknown)
in Unknown (created by Unknown)
in div (created by Unknown)
in div (created by Unknown)
in div (created by Unknown)
in Unknown (created by Promo)
ERROR in ./src/client/index.tsx
(20,10): error TS2339: Property '__content_state__' does not exist on type 'Window'.
ERROR in ./src/app/redux/store.ts
(28,22): error TS2339: Property 'devToolsExtension' does not exist on type 'Window'.
ERROR in ./src/app/redux/store.ts
(29,16): error TS2339: Property 'devToolsExtension' does not exist on type 'Window'.
ERROR in ./src/app/components/news/index.tsx
<!doctype html>
<html>
<head>
<title>seo.title</title>
<link rel="stylesheet" href="//common-css.cian.site/common.min.css">
<link rel="stylesheet" href="//common-css.cian.site/grid.min.css">
<script src="//polyfills.cian.site/polyfills.min.js"></script>
<script
src="//fonts.cian.site/fonts.min.js"
data-fonts-public-path="//fonts.cian.site/"
[
{
"title": "first",
"content": "first content"
},
{
"title": "second",
"content": "second content"
}
]
import * as React from 'react';
import { IndexRoute, Route } from 'react-router';
import { App } from '../containers/app/app';
import { Journal } from '../containers/journal/journal';
import { News } from '../containers/news'
import { NewsCard } from '../containers/news_card/news_card'
export default (
<Route path="/" component={App}>
<IndexRoute component={Journal} />
{"key":null,"ref":null,"props":{"path":"/","children":[{"key":null,"ref":null,"props":{},"_owner":null,"_store":{}},{"key":null,"ref":null,"props":{"path":"news"},"_owner":null,"_store":{}}]},"_owner":null,"_store":{}}
import * as React from 'react';
interface IProps {
key: number;
}
const NewsItem = (props: IProps) => {
return (
<div>
id: {props.key}