material-ui-template icon indicating copy to clipboard operation
material-ui-template copied to clipboard

I am seeing two problems

Open richtera opened this issue 7 years ago • 1 comments

  1. The peer dependencies don't work for a root project. They only seem to work for peers of other npm modules.
  2. I am getting an error when starting the dev server:
ERROR in Path must be a string. Received undefined

Unfortunately there is no stack trace for this but it seems to be caused by one of these:

Searching 59073 files for "Path must be a string." (regex)

/Users/andy/Development/material-ui-template/node_modules/react-native/node_modules/serve-static/index.js:
   41  
   42    if (typeof root !== 'string') {
   43:     throw new TypeError('root path must be a string')
   44    }
   45  

/Users/andy/Development/material-ui-template/node_modules/resolve/lib/async.js:
   14      if (typeof x !== 'string') {
   15          return process.nextTick(function () {
   16:             cb(new Error('path must be a string'));
   17          });
   18      }

/Users/andy/Development/material-ui-template/node_modules/serve-static/index.js:
   42  
   43    if (typeof root !== 'string') {
   44:     throw new TypeError('root path must be a string')
   45    }
   46  

Also I think the react-tap-event-plugin@^0.2.0 is a missing dependency.

richtera avatar Sep 21 '16 14:09 richtera

So all these problems were related to using node v6. node v5 seems to install peerDependencies on a root project but v6 does not (I guess it's npm's doing but the packaged npm for v6 ignores peerDependencies for the root project)

richtera avatar Sep 21 '16 17:09 richtera