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

UnhandledPromiseRejectionWarning when running htmlgoddess print from incorrect folder #52

Open
jsheth7 opened this issue Jul 18, 2021 · 0 comments

Comments

@jsheth7
Copy link

jsheth7 commented Jul 18, 2021

If you run htmlgoddess print from a folder outside of your htmlgoddess directory, you get this error:

(node:13559) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'getHooks' of undefined at /usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/@htmlgoddess/webpack-plugin/plugin.js:92:25 at SyncHook.eval [as call] (eval at create (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/HookCodeFactory.js:19:10), <anonymous>:5:1) at SyncHook.lazyCompileHook (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/Hook.js:154:20) at Compiler.newCompilation (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:631:26) at /usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:667:29 at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:4:1) at AsyncSeriesHook.lazyCompileHook (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/Hook.js:154:20) at Compiler.compile (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:662:28) at /usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:321:11 at Compiler.readRecords (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:529:11) at /usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:318:10 at eval (eval at create (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:9:1) at /usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/CachePlugin.js:50:13 at AsyncSeriesHook.eval [as callAsync] (eval at create (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:5:1) at AsyncSeriesHook.lazyCompileHook (/usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/tapable/lib/Hook.js:154:20) at /usr/local/lib/node_modules/@htmlgoddess/cli/node_modules/webpack/lib/Compiler.js:315:19 (node:13559) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:13559) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. Printing your website from /path/to/src to /path/to/docs... done

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

1 participant