TypeError: Object.fromEntries is not a function

Mohammed 81 Reputation points
2022-06-22T22:56:39.147+00:00

I am trying to setup my dev environment for SPFx development. I ran this command "npm install -g gulp yo @microsoft/generator-sharepoint" and got this output...

npm WARN deprecated uuid@3.1.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.

npm WARN deprecated read-package-tree@5.1.6: The functionality that this package provided is now in @npmcli/arborist
npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
npm WARN deprecated @opentelemetry/types@0.2.0: Package renamed to @opentelemetry/api, see https://github.com/open-telemetry/opentelemetry-js
npm WARN deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated fsevents@2.1.3: "Please update to latest v2.3 or v2.2"
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
C:\Users\myuser\AppData\Roaming\npm\gulp -> C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp\bin\gulp.js
C:\Users\myuser\AppData\Roaming\npm\yo -> C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\lib\cli.js
C:\Users\myuser\AppData\Roaming\npm\yo-complete -> C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\lib\completion\index.js

es5-ext@0.10.61 postinstall C:\Users\myuser\AppData\Roaming\npm\node_modules\gulp\node_modules\es5-ext
node -e "try{require('./_postinstall')}catch(e){}" || exit 0

core-js@3.23.2 postinstall C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\core-js
node -e "try{require('./postinstall')}catch(e){}"

Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!

The project needs your help! Please consider supporting of core-js:

https://opencollective.com/core-js
https://patreon.com/zloirock
bitcoin: bc1qlea7544qtsmj2rayg0lthvza9fau63ux0fstcz

Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)

spawn-sync@1.0.15 postinstall C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\spawn-sync
node postinstall

yo@4.3.0 postinstall C:\Users\myuser\AppData\Roaming\npm\node_modules\yo
yodoctor

Yeoman Doctor
Running sanity checks on your system

√ No .bowerrc file in home directory
√ Global configuration file is valid
√ NODE_PATH matches the npm root
√ No .yo-rc.json file in home directory
√ Node.js version
√ npm version
{ Error: Command failed: yo --version
C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6
const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
^

TypeError: Object.fromEntries is not a function
at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6:23)
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> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\index.js:2:6)
at Module._compile (internal/modules/cjs/loader.js:778:30)

at makeError (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\execa\index.js:174:9)  
at Promise.all.then.arr (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\execa\index.js:278:16)  
at process._tickCallback (internal/process/next_tick.js:68:7)  

code: 1,
stdout: '',
stderr:
'C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6\r\nconst fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>\r\n ^\r\n\r\nTypeError: Object.fromEntries is not a function\r\n at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6:23)\r\n at Module._compile (internal/modules/cjs/loader.js:778:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\r\n at Module.load (internal/modules/cjs/loader.js:653:32)\r\n at tryModuleLoad (internal/modules/cjs/loader.js:593:12)\r\n at Function.Module._load (internal/modules/cjs/loader.js:585:3)\r\n at Module.require (internal/modules/cjs/loader.js:692:17)\r\n at require (internal/modules/cjs/helpers.js:25:18)\r\n at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\index.js:2:6)\r\n at Module._compile (internal/modules/cjs/loader.js:778:30)\r\n',
failed: true,
signal: null,
cmd: 'yo --version',
timedOut: false,
killed: false }
× yo version
{ Error: Command failed: yo --version
C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6
const fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>
^

TypeError: Object.fromEntries is not a function
at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6:23)
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> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\index.js:2:6)
at Module._compile (internal/modules/cjs/loader.js:778:30)

at makeError (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\execa\index.js:174:9)  
at Promise.all.then.arr (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\execa\index.js:278:16)  
at process._tickCallback (internal/process/next_tick.js:68:7)  

code: 1,
stdout: '',
stderr:
'C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6\r\nconst fsSync = Object.fromEntries(Object.entries(fs).filter(([k, v]) =>\r\n ^\r\n\r\nTypeError: Object.fromEntries is not a function\r\n at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\fs.js:6:23)\r\n at Module._compile (internal/modules/cjs/loader.js:778:30)\r\n at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)\r\n at Module.load (internal/modules/cjs/loader.js:653:32)\r\n at tryModuleLoad (internal/modules/cjs/loader.js:593:12)\r\n at Function.Module._load (internal/modules/cjs/loader.js:585:3)\r\n at Module.require (internal/modules/cjs/loader.js:692:17)\r\n at require (internal/modules/cjs/helpers.js:25:18)\r\n at Object.<anonymous> (C:\Users\myuser\AppData\Roaming\npm\node_modules\yo\node_modules\npm-registry-fetch\node_modules\@npmcli\fs\lib\index.js:2:6)\r\n at Module._compile (internal/modules/cjs/loader.js:778:30)\r\n',
failed: true,
signal: null,
cmd: 'yo --version',
timedOut: false,
killed: false }

Found potential issues on your machine :(
npm WARN notsup Unsupported engine for yo@4.3.0: wanted: {"node":">=12.10.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yo@4.3.0
npm WARN notsup Unsupported engine for @microsoft/generator-sharepoint@1.15.0: wanted: {"node":">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @microsoft/generator-sharepoint@1.15.0
npm WARN notsup Unsupported engine for yeoman-generator@5.6.1: wanted: {"node":">=12.10.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yeoman-generator@5.6.1
npm WARN notsup Unsupported engine for @microsoft/sp-module-interfaces@1.15.0: wanted: {"node":">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @microsoft/sp-module-interfaces@1.15.0
npm WARN notsup Unsupported engine for @azure/logger@1.0.3: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @azure/logger@1.0.3
npm WARN notsup Unsupported engine for @azure/core-paging@1.3.0: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @azure/core-paging@1.3.0
npm WARN notsup Unsupported engine for @azure/abort-controller@1.1.0: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @azure/abort-controller@1.1.0
npm WARN notsup Unsupported engine for @azure/core-asynciterator-polyfill@1.0.2: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @azure/core-asynciterator-polyfill@1.0.2
npm WARN notsup Unsupported engine for @azure/core-auth@1.3.2: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @azure/core-auth@1.3.2
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules\@microsoft\generator-sharepoint\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\@microsoft\generator-sharepoint\node_modules\watchpack-chokidar2\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\@microsoft\generator-sharepoint\node_modules\@rushstack\typings-generator\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup Unsupported engine for sockjs-client@1.6.1: wanted: {"node":">=12"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: sockjs-client@1.6.1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\@microsoft\generator-sharepoint\node_modules\webpack-dev-server\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup Unsupported engine for eventsource@2.0.2: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: eventsource@2.0.2
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\gulp\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
npm WARN notsup Unsupported engine for mem-fs-editor@9.4.0: wanted: {"node":">=12.10.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: mem-fs-editor@9.4.0
npm WARN notsup Unsupported engine for yeoman-environment@3.9.1: wanted: {"node":">=12.10.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yeoman-environment@3.9.1
npm WARN notsup Unsupported engine for yeoman-doctor@5.0.0: wanted: {"node":">=12.10.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: yeoman-doctor@5.0.0
npm WARN notsup Unsupported engine for @npmcli/arborist@4.3.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/arborist@4.3.1
npm WARN notsup Unsupported engine for mem-fs@2.2.1: wanted: {"node":">=12"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: mem-fs@2.2.1
npm WARN notsup Unsupported engine for inquirer@8.2.4: wanted: {"node":">=12.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: inquirer@8.2.4
npm WARN notsup Unsupported engine for pacote@12.0.3: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: pacote@12.0.3
npm WARN notsup Unsupported engine for p-transform@1.3.0: wanted: {"node":">=12.10.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: p-transform@1.3.0
npm WARN notsup Unsupported engine for @npmcli/metavuln-calculator@2.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/metavuln-calculator@2.0.0
npm WARN notsup Unsupported engine for bin-links@3.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: bin-links@3.0.1
npm WARN notsup Unsupported engine for npm-registry-fetch@12.0.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: npm-registry-fetch@12.0.2
npm WARN notsup Unsupported engine for @npmcli/map-workspaces@2.0.3: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/map-workspaces@2.0.3
npm WARN notsup Unsupported engine for parse-conflict-json@2.0.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: parse-conflict-json@2.0.2
npm WARN notsup Unsupported engine for glob@8.0.3: wanted: {"node":">=12"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: glob@8.0.3
npm WARN notsup Unsupported engine for npmlog@6.0.2: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: npmlog@6.0.2
npm WARN notsup Unsupported engine for are-we-there-yet@3.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: are-we-there-yet@3.0.0
npm WARN notsup Unsupported engine for gauge@4.0.4: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: gauge@4.0.4
npm WARN notsup Unsupported engine for make-fetch-happen@10.1.8: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: make-fetch-happen@10.1.8
npm WARN notsup Unsupported engine for minipass-fetch@2.1.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: minipass-fetch@2.1.0
npm WARN notsup Unsupported engine for cacache@16.1.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: cacache@16.1.1
npm WARN notsup Unsupported engine for lru-cache@7.10.1: wanted: {"node":">=12"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: lru-cache@7.10.1
npm WARN notsup Unsupported engine for ssri@9.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: ssri@9.0.1
npm WARN notsup Unsupported engine for @npmcli/fs@2.1.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/fs@2.1.0
npm WARN notsup Unsupported engine for @npmcli/move-file@2.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: @npmcli/move-file@2.0.0
npm WARN notsup Unsupported engine for write-file-atomic@4.0.1: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: write-file-atomic@4.0.1
npm WARN notsup Unsupported engine for cmd-shim@5.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: cmd-shim@5.0.0
npm WARN notsup Unsupported engine for read-cmd-shim@3.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16.0.0"} (current: {"node":"10.20.1","npm":"6.14.4"})
npm WARN notsup Not compatible with your version of node/npm: read-cmd-shim@3.0.0

  • gulp@4.0.2
  • yo@4.3.0
  • @microsoft/generator-sharepoint@1.15.0
    added 60 packages from 117 contributors, removed 116 packages, updated 875 packages and moved 4 packages in 145.595s

Any idea why I am getting this? My Node JS version is 10.20.1.
I was told that the 10.x version is what is compatible with SPFx.

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,687 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,675 questions
0 comments No comments
{count} votes

Accepted answer
  1. RaytheonXie_MSFT 31,606 Reputation points Microsoft Vendor
    2022-06-23T05:58:38.523+00:00

    Hi @Mohammed ,
    For npm WARN deprecated uuid@3.1.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
    Basically, the error suggests you should upgrade uuid@3.1.0 version to 7 or higher. You can run npm install uuid@latest so as to upgrade to the latest stable version of uuid

    For TypeError: Object.fromEntries is not a function
    Your Node JS version is 10.20.1. Object.fromEntries() doesn't support Node js under 12.
    214108-image.png
    Please refer to the following document
    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/fromEntries
    You can upgrade to a version of Node JS that is above version 12.0.0.
    Please refer to the document to choose which version of node js to use.
    https://learn.microsoft.com/en-us/sharepoint/dev/spfx/set-up-your-development-environment


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


    0 comments No comments

0 additional answers

Sort by: Most helpful