aseemk / requireDir

Node.js helper to require() directories.
MIT License
484 stars 60 forks source link

Crash on Node 8 #50

Closed trongthanh closed 7 years ago

trongthanh commented 7 years ago

I got this error when running a project using it in Node 8

[...]/server/node_modules/require-dir/index.js:97
            if (!require.extensions.hasOwnProperty(ext)) {
                                    ^
TypeError: require.extensions.hasOwnProperty is not a function

It seems that require.extensions is deprecated and removed from Node 8. Any plan to upgrade this package for newer Node?

stephenlacy commented 7 years ago

did you update to the latest? #45

trongthanh commented 7 years ago

False alarm. Thought I got the latest version of it. Sorry. 😋