insidesherpa / JPMC-tech-task-2

29 stars 201 forks source link

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

Open ed765super opened 4 years ago

ed765super commented 4 years ago

image

RajeshTeja37 commented 4 years ago

If you already downloaded the node modules via cmd, then download this node modules from https://drive.google.com/file/d/1ML6nECK18J0jM3hhfJdSCRtCNLssruYQ/view and replace it with the node_modules folder in your local repository. and return to cmd and type "npm start" it will work

ed765super commented 4 years ago

Would I need to npm install after?

On Thu, Jul 23, 2020, 9:51 AM RajeshTeja notifications@github.com wrote:

If you already downloaded the node modules via cmd, then download this node modules from https://drive.google.com/file/d/1ML6nECK18J0jM3hhfJdSCRtCNLssruYQ/view and replace it with the node_modules folder in your local repository. and return to cmd and type "npm start" it will work

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/268#issuecomment-663019137, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBI5GILRDPCODUSJOP4JLDR5A57FANCNFSM4PFEVYEQ .

chugh-ak5 commented 4 years ago

npm install first, then npm start

RajeshTeja37 commented 4 years ago

"npm install" will download new versions of node_modules that gives you the error about "@jpmorganchase/perspective" so you can download the required node_modules for the task from above link and no need to use "npm install" after just "npm start"

nihitha582 commented 4 years ago
Screen Shot 2020-07-28 at 12 24 26 PM

This is the error I am getting after running this fix.

ed765super commented 4 years ago

Worked for me. Are you running from an admin CMD?

On Tue, Jul 28, 2020 at 12:27 PM nihitha582 notifications@github.com wrote:

[image: Screen Shot 2020-07-28 at 12 24 26 PM] https://user-images.githubusercontent.com/39545648/88693724-9f6fd180-d0cd-11ea-8b6f-18536812c17c.png This is the error I am getting after running this fix.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/268#issuecomment-665140713, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBI5GOIA7JJZWU6HTVVTHTR53363ANCNFSM4PFEVYEQ .

nihitha582 commented 4 years ago

Not sure what the admin CMD would be, I was just running the npm install, npm start as normally (after replacing the node_modules dir). Not sure if running Catalina MacOS effects it at all - I know there have been some read/write permission errors with that OS

ed765super commented 4 years ago

When you open your console (the black box) to you right click and try to run as an administrator

On Tue, Jul 28, 2020, 2:05 PM nihitha582 notifications@github.com wrote:

Not sure what the admin CMD would be, I was just running the npm install, npm start as normally (after replacing the node_modules dir). Not sure if running Catalina MacOS effects it at all - I know there have been some read/write permission errors with that OS

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/insidesherpa/JPMC-tech-task-2/issues/268#issuecomment-665191061, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGBI5GKTS2CGF6OYCJTOJADR54HN5ANCNFSM4PFEVYEQ .

nihitha582 commented 4 years ago

so running npm install react-scripts resolved the issue!

SamuelZewdu commented 3 years ago

I downloaded the link provided above and now ended up the error above(screenshot) in the comment

pi-squared-4 commented 3 years ago

If you already downloaded the node modules via cmd, then download this node modules from https://drive.google.com/file/d/1ML6nECK18J0jM3hhfJdSCRtCNLssruYQ/view and replace it with the node_modules folder in your local repository. and return to cmd and type "npm start" it will work

Can you share you package.json?

pi-squared-4 commented 3 years ago

I downloaded the link provided above and now ended up the error above(screenshot) in the comment

Can you share your package.json file?