insidesherpa / JPMC-tech-task-2

29 stars 200 forks source link

type error: Cannot find module '@jpmorganchase/perspective'. TS2307 #47

Open tanay-nagarsheth opened 4 years ago

tanay-nagarsheth commented 4 years ago

what is the error sir, please help, this error has been breaking my head since a long time now

error3 error2 error1

rohit270699 commented 4 years ago

tanay what errrors are u having because im also facing the same problem

tanay-nagarsheth commented 4 years ago

@rohit270699 I am facing Type Error : TS2307

supriyodey commented 4 years ago

me too facing the same issue

image

yk-x-25 commented 4 years ago

Guys, you need to start server. run python datafeed/server3.py

Sarthakkathuria commented 4 years ago

@tanay-nagarsheth this package has been moved to @finos/perspective try npm i @finos/perspective and update it in src/Graph.tsx and package.json

Ayaanmoh commented 4 years ago

@Sarthakkathuria Making those changes haven't fixed the problem. It says cannot find module @finos/perspective

Ayaanmoh commented 4 years ago

@TheYk98 Started the server. It runs without any issues. Then when we run npm start, we get the error.

yk-x-25 commented 4 years ago

@Ayaanmoh try deleting node_modules and replace with the node_modules folder(link in the doc) in the path. If you've tried that too, I'm not sure what's wrong

Ayaanmoh commented 4 years ago

I have tried replacing. after that npm start fails to start the server. I will try shifting to Windows for this task.

Sarthakkathuria commented 4 years ago

@Ayaanmoh check this npm i @finos/perspective https://www.npmjs.com/package/@finos/perspective

Ayaanmoh commented 4 years ago

@Sarthakkathuria tried to install finos as well. But it gave me the same error. i performed this on a virtual mac machine and it worked. Steps: npm install npm i @finos/perspective npm start

harsh725 commented 4 years ago

Even i am getting TS2307 anyone got the solution ? i tried everything del node_modules , doing it again ,then i made changes in graph file '@finos/perspective' insted of jpmorgan still getting that error.

SulthanNK commented 4 years ago

I am also facing this issue, anyone got the solution?

chandrikadeb7 commented 4 years ago

Change Line 2 of src/Graph.tsx to: import { Table } from '@finos/perspective'; For Mac environment.

SulthanNK commented 4 years ago

what is the error, sir, please help, this error has been breaking my head since a long time now

error3

I also faced this issue yesterday, but I noticed that the actual problem that I have is a different version of node and npm. so, I downgrade it to the version to what mentioned in the setup pdf document(for windows)

Screenshot (175)

shivansh49 commented 4 years ago

@Sarthakkathuria did you got the solution i am also facing same issue?please help

shivansh49 commented 4 years ago

@tanay-nagarsheth did you got solution please help i am also facing same issue

Nims972 commented 4 years ago

@shivansh49 yes , using nvm 11.0.0 solves the problem.

image

make sure you are executing these commands first.

shivansh49 commented 4 years ago

@Nims972 thanks a lot it works for me

SHREYASH-MUKESH commented 4 years ago

Originally posted by @SHREYASH-MUKESH in https://github.com/insidesherpa/JPMC-tech-task-2/issues/72#issuecomment-625046972 this will surely work as it worked for me also with the same issue

chandrikadeb7 commented 4 years ago

If anyone has any problem and is stuck anywhere, I have made a repo of my submitted files. Kindly have a look: https://github.com/chandrikadeb7/JPMorgan-Chase-Virtual-Internship

ikshitjalan commented 4 years ago

delete package-log.js file then npm install npm i @finos/perspective npm start

chavishaarora commented 4 years ago

I am facing a similar problem. Has anybody figured out the exact solution to this?

SHREYASH-MUKESH commented 4 years ago

I am facing a similar problem. Has anybody figured out the exact solution to this?

https://github.com/insidesherpa/JPMC-tech-task-2/issues/62#issuecomment-626211944

vishwakarmanikhil commented 4 years ago

for this error

  1. if you are using npm v11.0.0 then you will not face this error check your npm version first by command : node -v

2.if you have greater version than v11.0.0 then just go to the your project directory and just type the command: npm i @finos/perspective

this will install the required files in your project directory and then goto your graph.tsx file and replace

import { Table } from '@jpmorganchase/perspective';

with this below code

import { Table } from '@finos/perspective';

karshil2309 commented 4 years ago

If anyone has any problem and is stuck anywhere, I have made a repo of my submitted files. Kindly have a look: https://github.com/chandrikadeb7/JPMorgan-Chase-Virtual-Internship

delete package-log.js file then npm install npm i @finos/perspective npm start

It worked perfectly for me. Thanks @ikshitjalan

abhishekyadavz commented 4 years ago
dheerajodha commented 4 years ago

HI @tanay-nagarsheth If you get some more errors, then post your error screenshots here. If you've already solved your issue, please close this issue, thanks!

spandey1296 commented 4 years ago

me too facing the same issue

image

make changes in Graph.tsk file and then server. I have used as python3.

spandey1296 commented 4 years ago

what is the error sir, please help, this error has been breaking my head since a long time now

I had tried to install finos as well. But it gave me the same error. I performed this on a virtual machine and it worked. Steps: npm install npm i @finos/perspective npm start

For further help: https://www.npmjs.com/package/@finos/perspective If you again face issues, Guys, you need to start server run python datafeed/server3.py

Check your system and version.

nvm install v11.0.0 npm use 11.0.0

ns-github14 commented 4 years ago

@spandey1296 How can we run it on Windows instead of a virtual machine.... Any idea??

ns-github14 commented 4 years ago

@Sarthakkathuria I'm getting error while installing finos Screenshot (65) Screenshot (66)

arushichoudhary commented 4 years ago

@Nikhilvish04 After trying all steps i am getting this new error. error can u please help.

spandey1296 commented 4 years ago

if you find more issues than you can simply make changes in the code and submit. They will send you accurate solution if you have made mistakes. You can ask on Whatsapp 7277921877

On Sun, Jun 14, 2020 at 2:44 AM arushichoudhary notifications@github.com wrote:

@Nikhilvish04 https://github.com/Nikhilvish04 After trying all steps i am getting this new error. [image: error] https://user-images.githubusercontent.com/38611829/84579104-d83b3c00-ade8-11ea-8c38-c5ac1d1944cc.PNG can u please help.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/47#issuecomment-643679199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7YV4CJTOJHBAXWBNLOUGTRWPT4DANCNFSM4MQVWAVQ .

spandey1296 commented 4 years ago

That's good.

On Sun, Jun 14, 2020 at 7:45 PM arushichoudhary notifications@github.com wrote:

@Nikhilvish04 https://github.com/Nikhilvish04 After trying all steps i am getting this new error. [image: error] https://user-images.githubusercontent.com/38611829/84579104-d83b3c00-ade8-11ea-8c38-c5ac1d1944cc.PNG can u please help.

I deleted package-lock file and then repeated the steps by @Nikhilvish04 https://github.com/Nikhilvish04 .It worked.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/47#issuecomment-643772416, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7YV4FWM54FZ4JF3OF7BBTRWTLQ3ANCNFSM4MQVWAVQ .

ShaikhHeeba07 commented 4 years ago

Guys try this : Open new Terminal and type ' npm i --save @finos/perspective-viewer '

himu59 commented 3 years ago

for this error

  1. if you are using npm v11.0.0 then you will not face this error check your npm version first by command : node -v

2.if you have greater version than v11.0.0 then just go to the your project directory and just type the command: npm i @finos/perspective

this will install the required files in your project directory and then goto your graph.tsx file and replace

import { Table } from '@jpmorganchase/perspective';

with this below code

import { Table } from '@finos/perspective';

Thanks bro

spandey1296 commented 3 years ago

check your npm version using npm --version and if not installed latest version try to reinstall and install again.then change in graph.txt file.

import { Table } from '@jpmorganchase/perspective';

with this below code

import { Table } from '@finos/perspective';

https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail Virus-free. www.avast.com https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Mon, Jun 8, 2020 at 7:31 PM ns-github14 notifications@github.com wrote:

@Sarthakkathuria https://github.com/Sarthakkathuria I'm getting error while installing finos [image: Screenshot (65)] https://user-images.githubusercontent.com/65951560/84039164-79c42700-a9be-11ea-9da3-a6d41e7e3b1c.png [image: Screenshot (66)] https://user-images.githubusercontent.com/65951560/84039214-8ba5ca00-a9be-11ea-810b-dfc6592f13be.png

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/47#issuecomment-640625619, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7YV4GD76G4FMXS4YME4ITRVTVMFANCNFSM4MQVWAVQ .

Mohit-15 commented 3 years ago

image can anyone help me with this issue??

spandey1296 commented 3 years ago

check your npm version using npm --version and if not installed latest version try to reinstall and install again.then change in graph.txt file.

import { Table } from '@jpmorganchase/perspective';

with this below code

import { Table } from '@finos/perspective';

On Sun, Aug 23, 2020 at 1:05 AM Mohit_Gupta notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/52665879/90964269-a0353100-e4dc-11ea-8860-9a626594c58f.png can anyone help me out with this issue??

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/47#issuecomment-678683182, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL7YV4GCPAVKQFJTLAHONSTSCAMYLANCNFSM4MQVWAVQ .

amarnathz commented 3 years ago

what I did to solve this issue is

  1. install nvm(node version manager) https://github.com/coreybutler/nvm-windows/releases filename : nvm-setup.zip 2.open terminal and run nvm -v to check whether install or not 3.then, install >>>>> nvm install v11.0.0 //it store node v11 in temp folder
  2. use that version by, nvm use 11.0.0 5, then npm install and npm start
amarnathz commented 3 years ago

after all, did it show like this Capture

prashundey commented 2 years ago

If you're trying to download via @finos/perspective to solve the issues, you might just run into more issues with the dependencies. Usually, the problems for npm install regarding this setup is one or all of the three below:

If you're in a mac environment experiencing this problem, there could be a few areas of conflict

  1. Make sure you are using the correct nvm version $ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash $ nvm install v11.0.0 $ nvm use v11.0.0

  2. Npm is probably not mapped to python locally, so it cannot find an executable python during 'npm install'. This is stated in the debugging portion of the guide. For most installations python is located at /usr/bin/python $ npm config set /usr/bin/python

  3. Npm install fails on node-gyp rebuild with "gyp: No Xcode or CLT version". You can simply remove the older version and reinstall (https://github.com/schnerd/d3-scale-cluster/issues/7) $ sudo rm -rf /Library/Developer/CommandLineTools $ xcode-select --install

preyalameta02 commented 2 years ago

@Nikhilvish04 After trying all steps i am getting this new error. error can u please help.

hey, preyal this side, have you resolved the issue? i am still facing the same issue.

vishwakarmanikhil commented 2 years ago

@preyalameta02 In the error it is showing that react keyword is not recognized by the compiler. That's why it's giving this error. you have to import react module. If you have imported then check if modules are correctly installed or not.

Deleted the package-lock.json file & then run

npm install

still face the issue than try to debug with below page https://stackoverflow.com/questions/44439205/cant-resolve-module-not-found-in-react-js

preyalameta02 commented 2 years ago

@preyalameta02 In the error it is showing that react keyword is not recognized by the compiler. That's why it's giving this error. you have to import react module. If you have imported then check if modules are correctly installed or not.

Deleted the package-lock.json file & then run

npm install

still face the issue than try to debug with below page https://stackoverflow.com/questions/44439205/cant-resolve-module-not-found-in-react-js

thanks man, will try this out, really appreciate it

notreyreyes commented 2 years ago

@tanay-nagarsheth this package has been moved to @finos/perspective try npm i @finos/perspective and update it in src/Graph.tsx and package.json

YES THIS!! WORKED! THANK YOU!!!

anipaul2 commented 2 years ago

Change Line 2 of src/Graph.tsx to: import { Table } from '@finos/perspective'; For Mac environment.

and for windows?

preyalameta02 commented 2 years ago

@jpmorganchase/perspective is working on windows. Try again by importing code from another repository.

On Sun, 30 Jan, 2022, 2:15 pm Aniketh Paul, @.***> wrote:

Change Line 2 of src/Graph.tsx to: import { Table } from @.***/perspective'; For Mac environment.

and for windows?

— Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/47#issuecomment-1025097170, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS5ZJQEKP6CGT47I3VAJI6TUYT3BZANCNFSM4MQVWAVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you were mentioned.Message ID: @.***>

anipaul2 commented 2 years ago

@jpmorganchase/perspective is working on windows. Try again by importing code from another repository. On Sun, 30 Jan, 2022, 2:15 pm Aniketh Paul, @.> wrote: Change Line 2 of src/Graph.tsx to: import { Table } from @./perspective'; For Mac environment. and for windows? — Reply to this email directly, view it on GitHub <#47 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS5ZJQEKP6CGT47I3VAJI6TUYT3BZANCNFSM4MQVWAVQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you were mentioned.Message ID: @.***>

ok cool