You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 31, 2023. It is now read-only.
thrownewError(`The 'typescript' option must be a valid path to your TypeScript installation. We could not find anything at the following path: ${typescriptPath}`)
112
+
throwError({
113
+
type: errorTypes.TYPESCRIPT_NONEXISTENT,
114
+
message: `The 'typescript' option must be a valid path to your TypeScript installation. We could not find anything at the following path: ${typescriptPath}`,
expect(err.message).to.include(`The 'typescript' option must be a string. You passed: true`)
439
445
})
440
446
})
441
447
@@ -445,7 +451,9 @@ describe('browserify preprocessor', function () {
445
451
returnthis.run()
446
452
.then(shouldntResolve)
447
453
.catch((err)=>{
448
-
expect(err.message).to.equal(`The 'typescript' option must be a valid path to your TypeScript installation. We could not find anything at the following path: /nothing/here`)
expect(err.message).to.include(`The 'typescript' option must be a valid path to your TypeScript installation. We could not find anything at the following path: /nothing/here`)
449
457
})
450
458
})
451
459
@@ -457,7 +465,9 @@ describe('browserify preprocessor', function () {
457
465
returnthis.run()
458
466
.then(shouldntResolve)
459
467
.catch((err)=>{
460
-
expect(err.message).to.include('This may cause conflicts')
expect(err.message).to.include(`It looks like you passed the 'typescript' option and also specified a browserify plugin for TypeScript. This may cause conflicts`)
461
471
})
462
472
})
463
473
@@ -471,7 +481,11 @@ describe('browserify preprocessor', function () {
471
481
returnthis.run()
472
482
.then(shouldntResolve)
473
483
.catch((err)=>{
474
-
expect(err.message).to.include('This may cause conflicts')
expect(err.message).to.include(`It looks like you passed the 'typescript' option and also specified a browserify transform for TypeScript. This may cause conflicts`)
0 commit comments