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
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
486
-
Details:
487
-
* configuration.transportMode.server should be one of these:
488
-
string | function
489
-
Details:
490
-
* configuration.transportMode.server should be a string.
491
-
* configuration.transportMode.server should be an instance of function."
492
-
`;
493
-
494
-
exports[`options validate should throw an error on the "transportMode" option with '{}' value 1`] = `
495
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
496
-
- configuration.transportMode.client should be a string."
497
-
`;
498
-
499
-
exports[`options validate should throw an error on the "transportMode" option with 'nonexistent-implementation' value 1`] = `
500
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
501
-
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
504
-
Details:
505
-
* configuration.transportMode should be an object:
506
-
object { client?, server? }
507
-
* configuration.transportMode should be one of these:
508
-
\\"sockjs\\" | \\"ws\\""
509
-
`;
510
-
511
-
exports[`options validate should throw an error on the "transportMode" option with 'null' value 1`] = `
512
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
513
-
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
516
-
Details:
517
-
* configuration.transportMode should be an object:
518
-
object { client?, server? }
519
-
* configuration.transportMode should be one of these:
520
-
\\"sockjs\\" | \\"ws\\""
521
-
`;
522
-
523
486
exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `
524
487
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
525
488
- configuration.watchFiles should be one of these:
@@ -545,3 +508,54 @@ exports[`options validate should throw an error on the "watchFiles" option with
* configuration.webSocketServer should be one of these:
540
+
\\"sockjs\\" | \\"ws\\"
541
+
* configuration.webSocketServer should be a non-empty string.
542
+
* configuration.webSocketServer should be an instance of function.
543
+
* configuration.webSocketServer should be an object:
544
+
object { type?, options? }"
545
+
`;
546
+
547
+
exports[`options validate should throw an error on the "webSocketServer" option with 'nonexistent-implementation' value 1`] = `"Error: client.transport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient.js) via require.resolve(...)"`;
548
+
549
+
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
550
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
551
+
- configuration.webSocketServer should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
486
-
Details:
487
-
* configuration.transportMode.server should be one of these:
488
-
string | function
489
-
Details:
490
-
* configuration.transportMode.server should be a string.
491
-
* configuration.transportMode.server should be an instance of function."
492
-
`;
493
-
494
-
exports[`options validate should throw an error on the "transportMode" option with '{}' value 1`] = `
495
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
496
-
- configuration.transportMode.client should be a string."
497
-
`;
498
-
499
-
exports[`options validate should throw an error on the "transportMode" option with 'nonexistent-implementation' value 1`] = `
500
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
501
-
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
504
-
Details:
505
-
* configuration.transportMode should be an object:
506
-
object { client?, server? }
507
-
* configuration.transportMode should be one of these:
508
-
\\"sockjs\\" | \\"ws\\""
509
-
`;
510
-
511
-
exports[`options validate should throw an error on the "transportMode" option with 'null' value 1`] = `
512
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
513
-
- configuration.transportMode should be one of these:
-> This option allows us either to choose the current devServer transport mode for client/server individually or to provide custom client/server implementation. https://webpack.js.org/configuration/dev-server/#devservertransportmode
516
-
Details:
517
-
* configuration.transportMode should be an object:
518
-
object { client?, server? }
519
-
* configuration.transportMode should be one of these:
520
-
\\"sockjs\\" | \\"ws\\""
521
-
`;
522
-
523
486
exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `
524
487
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
525
488
- configuration.watchFiles should be one of these:
@@ -545,3 +508,54 @@ exports[`options validate should throw an error on the "watchFiles" option with
* configuration.webSocketServer should be one of these:
540
+
\\"sockjs\\" | \\"ws\\"
541
+
* configuration.webSocketServer should be a non-empty string.
542
+
* configuration.webSocketServer should be an instance of function.
543
+
* configuration.webSocketServer should be an object:
544
+
object { type?, options? }"
545
+
`;
546
+
547
+
exports[`options validate should throw an error on the "webSocketServer" option with 'nonexistent-implementation' value 1`] = `"Error: client.transport must be a string denoting a default implementation (e.g. 'sockjs', 'ws') or a full path to a JS file which exports a class extending BaseClient (webpack-dev-server/client-src/clients/BaseClient.js) via require.resolve(...)"`;
548
+
549
+
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
550
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
551
+
- configuration.webSocketServer should be one of these:
0 commit comments