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
503
-
Details:
504
-
* configuration.transportMode.server should be one of these:
505
-
string | function
506
-
Details:
507
-
* configuration.transportMode.server should be a string.
508
-
* configuration.transportMode.server should be an instance of function."
509
-
`;
510
-
511
-
exports[`options validate should throw an error on the "transportMode" option with '{}' 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.client should be a string."
514
-
`;
515
-
516
-
exports[`options validate should throw an error on the "transportMode" option with 'nonexistent-implementation' value 1`] = `
517
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
518
-
- 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
521
-
Details:
522
-
* configuration.transportMode should be an object:
523
-
object { client?, server? }
524
-
* configuration.transportMode should be one of these:
525
-
\\"sockjs\\" | \\"ws\\""
526
-
`;
527
-
528
-
exports[`options validate should throw an error on the "transportMode" option with 'null' value 1`] = `
529
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
530
-
- 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
533
-
Details:
534
-
* configuration.transportMode should be an object:
535
-
object { client?, server? }
536
-
* configuration.transportMode should be one of these:
537
-
\\"sockjs\\" | \\"ws\\""
538
-
`;
539
-
540
503
exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `
541
504
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
542
505
- configuration.watchFiles should be one of these:
@@ -562,3 +525,54 @@ exports[`options validate should throw an error on the "watchFiles" option with
* configuration.webSocketServer should be one of these:
557
+
\\"sockjs\\" | \\"ws\\"
558
+
* configuration.webSocketServer should be a non-empty string.
559
+
* configuration.webSocketServer should be an instance of function.
560
+
* configuration.webSocketServer should be an object:
561
+
object { type?, options? }"
562
+
`;
563
+
564
+
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(...)"`;
565
+
566
+
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
567
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
568
+
- 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
503
-
Details:
504
-
* configuration.transportMode.server should be one of these:
505
-
string | function
506
-
Details:
507
-
* configuration.transportMode.server should be a string.
508
-
* configuration.transportMode.server should be an instance of function."
509
-
`;
510
-
511
-
exports[`options validate should throw an error on the "transportMode" option with '{}' 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.client should be a string."
514
-
`;
515
-
516
-
exports[`options validate should throw an error on the "transportMode" option with 'nonexistent-implementation' value 1`] = `
517
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
518
-
- 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
521
-
Details:
522
-
* configuration.transportMode should be an object:
523
-
object { client?, server? }
524
-
* configuration.transportMode should be one of these:
525
-
\\"sockjs\\" | \\"ws\\""
526
-
`;
527
-
528
-
exports[`options validate should throw an error on the "transportMode" option with 'null' value 1`] = `
529
-
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
530
-
- 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
533
-
Details:
534
-
* configuration.transportMode should be an object:
535
-
object { client?, server? }
536
-
* configuration.transportMode should be one of these:
537
-
\\"sockjs\\" | \\"ws\\""
538
-
`;
539
-
540
503
exports[`options validate should throw an error on the "watchFiles" option with '123' value 1`] = `
541
504
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
542
505
- configuration.watchFiles should be one of these:
@@ -562,3 +525,54 @@ exports[`options validate should throw an error on the "watchFiles" option with
* configuration.webSocketServer should be one of these:
557
+
\\"sockjs\\" | \\"ws\\"
558
+
* configuration.webSocketServer should be a non-empty string.
559
+
* configuration.webSocketServer should be an instance of function.
560
+
* configuration.webSocketServer should be an object:
561
+
object { type?, options? }"
562
+
`;
563
+
564
+
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(...)"`;
565
+
566
+
exports[`options validate should throw an error on the "webSocketServer" option with 'null' value 1`] = `
567
+
"ValidationError: Invalid configuration object. Object has been initialized using a configuration object that does not match the API schema.
568
+
- configuration.webSocketServer should be one of these:
0 commit comments