We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0521818 commit 0ee1983Copy full SHA for 0ee1983
packages/@vue/cli-ui/apollo-server/connectors/plugins.js
@@ -249,6 +249,7 @@ function getApi (folder) {
249
250
function callHook ({ id, args, file }, context) {
251
const pluginApi = getApi(file)
252
+ if (!pluginApi) return
253
const fns = pluginApi.hooks[id]
254
log(`Hook ${id}`, fns.length, 'handlers')
255
fns.forEach(fn => fn(...args))
0 commit comments