question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

🐛 ~ `Error while loading rule 'functional/functional-parameters': Object.fromEntries is not a function`

See original GitHub issue

Platform: MacOS, Ubuntu, and Windows NodeJS: v10.23.0 ESLint: v7.16.0

From working v3.1.0, v3.2.0 now causes this error when running npx eslint .:

ESLint: 7.16.0

TypeError: Error while loading rule 'functional/functional-parameters': Object.fromEntries is not a function
Occurred while linting C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\eg\show-paths.js
    at create (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint-plugin-functional\lib\index.js:498:48)
    at Object.create (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\@typescript-eslint\experimental-utils\dist\eslint-utils\RuleCreator.js:13:24)
    at createRuleListeners (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint\lib\linter\linter.js:761:21)
    at Object.keys.forEach.ruleId (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint\lib\linter\linter.js:931:31)
    at Array.forEach (<anonymous>)
    at runRules (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint\lib\linter\linter.js:876:34)
    at Linter._verifyWithoutProcessors (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint\lib\linter\linter.js:1173:31)
    at Linter._verifyWithoutProcessors (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint-plugin-eslint-comments\lib\utils\patch.js:181:42)
    at Linter._verifyWithConfigArray (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint\lib\linter\linter.js:1271:21)
    at Linter.verify (C:\Users\Roy\OneDrive\Projects\js\js.os-paths\repo\node_modules\eslint\lib\linter\linter.js:1226:25)

Using either NodeJS v12.20.0+ or holding eslint-plugin-functional to “❤️.2.0”, npx eslint . completes without error.

GitHub CI was noted to start failing on MacOS, Ubuntu, and Windows NodeJS-v10 earlier today.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
RebeccaStevenscommented, Jan 1, 2021

Ahh, damn. There was a weird problem when I made the release. I should have tested it afterwards. I’ll mark that release and broken and try and get a new fixed release out soon.

0reactions
rivycommented, Jan 2, 2021

Looks good; local and CI passing. Thanks for the attention!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object.fromEntries is not a function error when using chakra-ui ...
I had to update my node version, which was at v10.17.0. I updated it to v14.17.0!
Read more >
TypeError: Object.fromEntries is not a function #343 - GitHub
but when I tried to execute the yo code generator, it raised an error. Executed command : $ yo code. Output error :...
Read more >
Object.fromEntries is not a function error when using next.js
Object. fromEntries is not a function error when using next.js . the culprit here is the version of node.js installed. here are the...
Read more >
TypeError: Object.fromEntries is not a function - Microsoft Learn
TypeError : Object.fromEntries is not a function. I am trying to setup my dev environment for SPFx development.
Read more >
How do I get the method "Object.fromEntries( )" to work?
fromEntries(array) console.log(obj) …it logs the same error message as before: TypeError: Object.fromEntries is not a function at Object.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found