Agile育成ブログ
未来を変える喜びを
Next.js

エラー集3 npm run dev時にエラー


Warning: count(): Parameter must be an array or an object that implements Countable in /home/xs638785/agile-software.site/public_html/wp-content/plugins/rich-table-of-content/functions.php on line 490
> standard_technique@0.1.0 dev /home/**********/src/standard_technique
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
(node:28022) UnhandledPromiseRejectionWarning: ReferenceError: TextEncoder is not defined
    at /home/ookuboc5399/src/standard_technique/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js:67:19
    at Object.<anonymous> (/home/**********/src/standard_technique/node_modules/next/dist/compiled/react-server-dom-webpack/cjs/react-server-dom-webpack-writer.browser.development.server.js:900:5)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/ookuboc5399/src/standard_technique/node_modules/next/dist/compiled/react-server-dom-webpack/writer.browser.server.js:6:20)
(node:28022) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:28022) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
Error: Not supported
    at Object.loadConfig [as default] (/home/**********/src/standard_technique/node_modules/next/dist/server/config.js:448:78)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! standard_technique@0.1.0 dev: `next dev`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the standard_technique@0.1.0 dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/**********/.npm/_logs/2022-03-21T04_58_50_171Z-debug.log

You cannot copy content of this page