christianalfoni / webpack-express-boilerplate

A boilerplate for running a Webpack workflow in Node express
MIT License
1.39k stars 291 forks source link

Cannot resolve module 'prop-types' redbox #74

Closed myk5000 closed 7 years ago

myk5000 commented 7 years ago

FYI, downloaded boilerplate, npm install, npm start -

ERROR in ./~/redbox-react/lib/index.js Module not found: Error: Cannot resolve module 'prop-types' in C:\<path>\node_modules\redbox-react\lib @ ./~/redbox-react/lib/index.js 12:17-38

christianalfoni commented 7 years ago

@myk5000 This is React 16 change, it needs an extra dependency :-)

JesseDobson commented 7 years ago

+christianalfoni what is that extra dependency and do i specify it in package.json?

cdosborn commented 7 years ago

No need to add an extra dependency. Read the press-release from React.