File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,12 +4,13 @@ import SandboxError from './sandbox-error';
44
55export default class DependencyNotFoundError extends SandboxError {
66 constructor ( dependencyName : string ) {
7+ super ( ) ;
78 const [ root , second ] = dependencyName . split ( '/' ) ;
89
910 // If the package starts with a @ it's scoped, we should add the second
1011 // part of the name in that case
1112 const parsedName = root . startsWith ( '@' ) ? `${ root } /${ second } ` : root ;
12- const suggestions = [
13+ this . suggestions = [
1314 {
1415 title : `Add ${ parsedName } as dependency` ,
1516 action : ( ) => {
@@ -18,8 +19,6 @@ export default class DependencyNotFoundError extends SandboxError {
1819 } ,
1920 ] ;
2021
21- super ( suggestions ) ;
22-
2322 this . name = 'DependencyNotFoundError' ;
2423 this . message = `Could not find dependency: '${ parsedName } '` ;
2524 }
You can’t perform that action at this time.
0 commit comments