File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env node
2
2
3
+ /* eslint-disable complexity */
4
+
3
5
import Auto , {
4
6
ApiOptions ,
5
7
IInfoOptions ,
@@ -116,6 +118,19 @@ export async function run(command: string, args: ApiOptions) {
116
118
` ) ;
117
119
console . log ( "" ) ;
118
120
auto . logger . verbose . error ( error ) ;
121
+ } else if ( error . message . includes ( "TypeError: Cannot read property 'tap" ) ) {
122
+ auto . logger . log . error ( endent `
123
+ One of the plugins you're using calls an unknown hook!
124
+
125
+ This usually because your project is trying to use mismatched plugin + core version.
126
+
127
+ To fix this do one of the following:
128
+
129
+ 1. Ensure that you have the same version of auto and it's plugins installed
130
+ 2. Ensure that any non-official plugins use the same version of @auto-it/core
131
+ 3. Ensure your environment's version of auto matches the plugins you're using
132
+ ` ) ;
133
+ auto . logger . log . error ( error ) ;
119
134
} else if ( ! ( error instanceof LabelExistsError ) ) {
120
135
console . log ( error ) ;
121
136
}
You can’t perform that action at this time.
0 commit comments