React-modal: Modal has overlay but doesnt appear in project, although it previously did

Created on 24 Jun 2016  路  3Comments  路  Source: reactjs/react-modal

Summary:

I hadn't worked on a project for about two months then when returning and altering the text of one modal and clearing and re-installing the most recent versions of my npm packages the modals would not show up at all.

Steps to reproduce:

  1. Resintall npm pakages because getting following error
[ERROR in ./frontend/nimbusplaylist.jsx
Module not found: Error: Cannot resolve module 'react-modal' in /Users/chrisvh/Documents/Capstone/frontend
 @ ./frontend/nimbusplaylist.jsx 3:12-34

ERROR in ./frontend/components/NewPlaylistModal.jsx
Module not found: Error: Cannot resolve module 'react-modal' in /Users/chrisvh/Documents/Capstone/frontend/components
 @ ./frontend/components/NewPlaylistModal.jsx 3:12-34

ERROR in ./frontend/components/PlaylistModal.jsx
Module not found: Error: Cannot resolve module 'react-modal' in /Users/chrisvh/Documents/Capstone/frontend/components
 @ ./frontend/components/PlaylistModal.jsx 5:12-34

ERROR in ./frontend/components/Like.jsx
Module not found: Error: Cannot resolve module 'react-modal' in /Users/chrisvh/Documents/Capstone/frontend/components
 @ ./frontend/components/Like.jsx 5:12-34

etc...

  1. Change text of modal

Expected behavior:

Updated modal with behavior similar to what it was.

Additional notes:

I'm a total noob and am not too sure how the npm installing may have affected the project or why I would have had to npm install on the project I cloned. Any advice would be great but and in depth explanation of why what I'm doing isn't working would be phenomenal.

Most helpful comment

@ChristopherVH I think u do not install react-modal, u can npm i --save react-modal

All 3 comments

@ChristopherVH I think u do not install react-modal, u can npm i --save react-modal

@stephenkingsley seems to be the case.

@ChristopherVH after the npm command it worked?

Totally right, all fixed now!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

CXJoyce picture CXJoyce  路  4Comments

c0debreaker picture c0debreaker  路  4Comments

istok20 picture istok20  路  3Comments

bjbrewster picture bjbrewster  路  4Comments

petertdinh picture petertdinh  路  4Comments