問題タブ [reactjs-testutils]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
reactjs - Karma & React 16.2.0 でこのエラーを修正するにはどうすればよいですか?
この Karma 構成があります (React 16.2.0 を使用):
次のコンソール エラーが表示されます。
{ "message": "Uncaught ReferenceError: addons is not defined\nat test/allTests.js:81672:8\n\nReferenceError: addons is not defined\n
at Object.defineProperty.value (test/allTests.js:84455: 18)\n webpack_require (test/allTests.js:20:30) で\n test/allTests.js:81668:20 で\n Object.defineProperty.value (test/allTests.js:81732:6) で\n webpack_requireで (test/allTests.js:20:30)\n オブジェクトで (test/allTests.js:79742:21)\n オブジェクトで (test/allTests.js:80112:31)\n webpack_requireで ( test/allTests.js:20:30)\n オブジェクトで (test/allTests.js:77771:15)\n webpack_requireで (test/allTests.js:20:30)", "str": "Uncaught ReferenceError: addons is not defined\nat test/allTests.js:81672:8\n\nReferenceError: addons is not defined\n
at Object. defineProperty.value (test/allTests.js:84455:18)\n webpack_require (test/allTests.js:20:30) で\n test/allTests.js:81668:20 で\n Object.defineProperty.value ( test/allTests.js:81732:6)\n webpack_requireで (test/allTests.js:20:30)\n オブジェクトで。(test/allTests.js:79742:21)\n オブジェクトで。(test/allTests.js:80112:31)\n webpack_requireで (test/allTests.js:20:30)\n オブジェクトで。(test/allTests.js:77771:15)\n at webpack_require (test/allTests.js:20:30)" }
このエラーの原因は何ですか?