JavaScript – Eternal Night https://www.shuijingwanwq.com There is no problem not worth solving, and no technology not worth learning! Mon, 25 May 2026 13:30:22 +0000 en-US hourly 1 https://wordpress.org/?v=7.0 An error is reported in the browser console: UncaughtSyntaxError invalid or unexpected token (xxx.js) https://www.shuijingwanwq.com/en/2023/06/21/12563/ https://www.shuijingwanwq.com/en/2023/06/21/12563/#respond Wed, 21 Jun 2023 01:37:44 +0000 https://www.shuijingwanwq.com/?p=12563 https://www.shuijingwanwq.com/en/2023/06/21/12563/feed/ 0 Run test cases based on Mocha in Refactoring: Improved Design of Existing Code (2nd Edition) https://www.shuijingwanwq.com/en/2023/02/14/12767/ https://www.shuijingwanwq.com/en/2023/02/14/12767/#respond Tue, 14 Feb 2023 13:05:37 +0000 https://www.shuijingwanwq.com/?p=12767 https://www.shuijingwanwq.com/en/2023/02/14/12767/feed/ 0 In JavaScript, each class forms a separate file and then references each other https://www.shuijingwanwq.com/en/2023/02/02/12779/ https://www.shuijingwanwq.com/en/2023/02/02/12779/#respond Thu, 02 Feb 2023 13:02:52 +0000 https://www.shuijingwanwq.com/?p=12779 https://www.shuijingwanwq.com/en/2023/02/02/12779/feed/ 0 Construct a test system in Refactoring: Improve the Design of Existing Code (2nd Edition) – Writing the sample code to be tested https://www.shuijingwanwq.com/en/2023/01/28/12791/ https://www.shuijingwanwq.com/en/2023/01/28/12791/#respond Sat, 28 Jan 2023 13:43:25 +0000 https://www.shuijingwanwq.com/?p=12791 https://www.shuijingwanwq.com/en/2023/01/28/12791/feed/ 0 Uncaught SyntaxError: cannot use import statement outside a module (at statement.js:1:1) https://www.shuijingwanwq.com/en/2022/12/30/12815/ https://www.shuijingwanwq.com/en/2022/12/30/12815/#respond Fri, 30 Dec 2022 13:17:18 +0000 https://www.shuijingwanwq.com/?p=12815 https://www.shuijingwanwq.com/en/2022/12/30/12815/feed/ 0 Use of JS Nested Functions in Refactoring: Improved Design of Existing Code (2nd Edition) https://www.shuijingwanwq.com/en/2022/12/23/12911/ https://www.shuijingwanwq.com/en/2022/12/23/12911/#respond Fri, 23 Dec 2022 06:17:35 +0000 https://www.shuijingwanwq.com/?p=12911 https://www.shuijingwanwq.com/en/2022/12/23/12911/feed/ 0 Lerna Err! Yarn Run Prod Exited 1 in@theme/objectError command failed with exit code 1. https://www.shuijingwanwq.com/en/2022/08/29/13268/ https://www.shuijingwanwq.com/en/2022/08/29/13268/#respond Mon, 29 Aug 2022 06:01:56 +0000 https://www.shuijingwanwq.com/?p=13268 https://www.shuijingwanwq.com/en/2022/08/29/13268/feed/ 0 Refactoring Improve the design of existing code (version 2), the actual operation of the first example, error: uncaught typeError: invoice.performances is not iterable https://www.shuijingwanwq.com/en/2022/07/10/13379/ https://www.shuijingwanwq.com/en/2022/07/10/13379/#respond Sun, 10 Jul 2022 08:06:15 +0000 https://www.shuijingwanwq.com/?p=13379 https://www.shuijingwanwq.com/en/2022/07/10/13379/feed/ 0 When executing YARN, an error is reported: Failed to apply patch for package laravel-mix. patches\Laravel-mix+6.0.43.patch could not be parsed. https://www.shuijingwanwq.com/en/2022/07/06/9900/ https://www.shuijingwanwq.com/en/2022/07/06/9900/#respond Wed, 06 Jul 2022 01:14:40 +0000 https://www.shuijingwanwq.com/?p=9900 https://www.shuijingwanwq.com/en/2022/07/06/9900/feed/ 0 When executing the command: npm run build, prompt: npm err! missing script: “build” https://www.shuijingwanwq.com/en/2022/04/18/13692/ https://www.shuijingwanwq.com/en/2022/04/18/13692/#respond Mon, 18 Apr 2022 01:39:17 +0000 https://www.shuijingwanwq.com/?p=13692 https://www.shuijingwanwq.com/en/2022/04/18/13692/feed/ 0