martinmicunda / employee-scheduling-ui

An UI component for Employee Scheduling application.
http://martinmicunda.github.io/employee-scheduling-ui/dist
GNU General Public License v3.0
415 stars 121 forks source link

require.extensions.hasOwnProperty is not a function #32

Open PaaBliiTo opened 7 years ago

PaaBliiTo commented 7 years ago
if (!require.extensions.hasOwnProperty(ext)) {
                       ^
TypeError: require.extensions.hasOwnProperty is not a function

Got this issue after running npm start Any idea ?

mika-s commented 7 years ago

It's because require-dir used by this package is out of date. There were some changes to node.js that caused this. You can see the update commit for require-dir here. I guess you could try to upgrade require-dir to 0.3.2.

I am not related to employee-scheduling-ui by the way, I just came across your issue by random.

gbourne1 commented 6 years ago

Just upgrade to the latest version of require-dir and it will work.