insidesherpa / JPMC-tech-task-2-PY3

29 stars 348 forks source link

task2-npm start error #290

Open Gauravkumar29 opened 4 years ago

Gauravkumar29 commented 4 years ago

i install the npm and after running npm start command I figure some file missing error pls check it Screenshot (76)

Kam149 commented 4 years ago

Did you run python datafeed/server3.py simultaneously in another cmd?

Gauravkumar29 commented 4 years ago

no i run this on one cmd and in other cmd I run npm start cmnd

dipashreepatil commented 4 years ago

Did you try npm i caniuse-lite browserslist and the npm update caniuse-lite browserslist

Gauravkumar29 commented 4 years ago

i try npm update caniuse-lite browserlist cmnd but nothing happened . i think there is some fie missing in module

ShivaneePanchal commented 4 years ago

Download the npm_module zip folder from the link in instructions and replace it in your folder. then try.

Gauravkumar29 commented 4 years ago

but the error shown in cmd is in src file in Graph.tsx

Gauravkumar29 commented 4 years ago

i am stuck here from last 2 days pls advice me smthng to figure it out

Kam149 commented 4 years ago

@Gauravkumar29 go through pull requests in the repository, you will find solution to your problem. Actually problem is with the perspective.

Kam149 commented 4 years ago

In graph.src change import { Table } from '@jpmorganchase/perspective'; to import { Table } from '@finos/perspective';

tejasramramesh commented 4 years ago

In graph.src change import { Table } from '@jpmorganchase/perspective'; to import { Table } from '@finos/perspective';

@Kam149 This does not work

Kam149 commented 4 years ago

@tejasramramesh Now, what is the error?

tejasramramesh commented 4 years ago

C:/Users/tejas/JPMC-tech-task-2-PY3/src/Graph.tsx Type error: Cannot find module '@jpmorganchase/perspective'. TS2307

1 | import React, { Component } from 'react';

2 | import { Table } from '@jpmorganchase/perspective'; | ^ 3 | import { ServerRespond } from './DataStreamer'; 4 | import './Graph.css'; 5 |

@Kam149

tejasramramesh commented 4 years ago

@Kam149 even after replacing the line you told with the solution you gave it told me this line was missing : import { Table } from '@jpmorganchase/perspective';

Kam149 commented 4 years ago

Actually I got the same error but it was solved by replacing @jpmorganchase with @finos. It might be possible that some packages might not get installed at the time of npm install?? Because ultimately it's giving import error only.

Gauravkumar29 commented 4 years ago

replacing is not wrking same error

tejasramramesh commented 4 years ago

@Kam149 this error is with the files of node_module they gave as an download option. Its an external dependency so i dont know why the error occured

Kam149 commented 4 years ago

@tejasramramesh Go through the methods given in this link and if you get stuck somewhere in these methods you can then ask me.. https://github.com/insidesherpa/JPMC-tech-task-2-PY3/pull/5/files I think this will help you..

Shreya-learner commented 4 years ago

@tejasramramesh Go through the methods given in this link and if you get stuck somewhere in these methods you can then ask me.. https://github.com/insidesherpa/JPMC-tech-task-2-PY3/pull/5/files I think this will help you..

Thanks a lot!

Kam149 commented 4 years ago

Happy to help you..