Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] requireDir on Node 8 #66

Closed
thonatos opened this issue Jun 30, 2017 · 2 comments
Closed

[Bug] requireDir on Node 8 #66

thonatos opened this issue Jun 30, 2017 · 2 comments

Comments

@thonatos
Copy link

thonatos commented Jun 30, 2017

env

  • Node v8.0.0
  • Ghost 1.0.0-beta.2

effect

could not active any theme, 🤣

what

TypeError: require.extensions.hasOwnProperty is not a function
    at requireDir (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/node_modules/require-dir/index.js:95:37)
    at Object.<anonymous> (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/node_modules/gscan/lib/checker.js:8:10)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/node_modules/gscan/lib/index.js:3:15)
    at Module._compile (module.js:569:30)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.checkTheme [as check] (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/core/server/themes/validate.js:10:17)
    at activeThemeHasLoaded (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/core/server/themes/index.js:35:22)
    at tryCatcher (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/thonatos/workspace/node/test/Ghost-1.0.0-beta.2/node_modules/bluebird/js/release/promise.js:569:18)

why

"require-dir": "0.1.0"

how

  • update requireDir to 0.3.2
@acburdine
Copy link
Member

@thonatos Thanks for the report, although I'm going to close it because it's a duplicate of #56.

@thonatos
Copy link
Author

got it. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants