insidesherpa / JPMC-tech-task-2-PY3

29 stars 350 forks source link

Type error: Cannot find module '@jpmorganchase/perspective'. TS2307 #399

Open ShresthSrivastava opened 4 years ago

ShresthSrivastava commented 4 years ago

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

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

shubhankar-naik commented 4 years ago

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

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

Change "@jpmorganchase/perspective" to "@finos/perspective" in Graph.tsx and "npm install @finos/perspective --save" in terminal and then "npm start"

ShresthSrivastava commented 4 years ago

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

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

Change "@jpmorganchase/perspective" to "@finos/perspective" in Graph.tsx and "npm install @finos/perspective --save" in terminal and then "npm start"

This error is coming when I did this above solution! ./src/index.tsx Module not found: Can't resolve 'react' in 'F:\J.P. Morgan Internship\JPMC-tech-task-2-PY3\src'

vikivanov commented 4 years ago

Check #386 It worked for me.

shubhankar-naik commented 4 years ago

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

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

Change "@jpmorganchase/perspective" to "@finos/perspective" in Graph.tsx and "npm install @finos/perspective --save" in terminal and then "npm start"

This error is coming when I did this above solution! ./src/index.tsx Module not found: Can't resolve 'react' in 'F:\J.P. Morgan Internship\JPMC-tech-task-2-PY3\src'

Check if react is correctly installed or not

chandni3008 commented 4 years ago

Run following commands, it worked for me npm install npm install --ignore-scripts npm audit fix npm start

ShresthSrivastava commented 4 years ago

I can't find datamanipulator.ts file

is datastreamer.ts the same file? if it's the same file than the content is somewhat different from the snippet present in the guide.

RajeshTeja37 commented 4 years ago

download node modules from here and replace it with your local repository https://drive.google.com/file/d/1ML6nECK18J0jM3hhfJdSCRtCNLssruYQ/view it will work

ghost commented 4 years ago

I have the few suggestions you have made but I am still experiencing problems with the 'Set Up' for task 3, can anybody help?

I am using a mac.

Screenshot 2020-07-30 at 11 15 41