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.

eslintIntegration. Cannot read property 'sync' of undefined

See original GitHub issue

It’s the first time I’m trying to set it up, so I might have skipped something obvious, but can’t figure it out.

After CMD + Shift + P -> Format Document , it shows in the Output tab:

Cannot read property ‘sync’ of undefined image

I just installed the extension today, version 0.24 Settings of the plugin: { “prettier.eslintIntegration”: true }

prettier 1.6.1 eslint 4.8.0 . (installed globally)

.eslintrc content is:

{
    "extends": [
        "plugin:react/recommended"
    ],
    "plugins": [ "react" ],
    "parserOptions": {
        "ecmaVersion": 8,
        "sourceType": "module",
        "ecmaFeatures": {
            "impliedStrict": true,
            "jsx": true
        }
    }
}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:23 (10 by maintainers)

github_iconTop GitHub Comments

12reactions
seancheungcommented, Oct 10, 2017
npm update -D prettier

ctrl+shift+p -> Reload Window

This should work

2reactions
raviteja83commented, Oct 18, 2017

Try adding this to workspace settings. { "prettier.eslintIntegration": false} This worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'sync' of undefined - Stack Overflow
I have got it working by moving my index.js file to the models folder. This file has the necessairy scripts that dispatches sequelise...
Read more >
Developers - Cannot read property 'sync' of undefined -
My VSCode settings.json: "editor.snippetSuggestions": "top", "prettier.eslintIntegration": true, "editor.formatOnSave": true. My .eslintrc.json:
Read more >
TypeError: Cannot read property 'sync' of undefined | Medium
In this post am going to share the possibility of the “TypeError: Cannot read property 'sync' of undefined”. The error above can be...
Read more >
Basic Features: ESLint - Next.js
Next.js provides an integrated ESLint experience by default. These conformance rules help you use Next.js in the optimal way.
Read more >
cyrus-imapd bug fix and enhancement update
Annocheck: Fix test for AArch64 property notes. ... environment in order to be able to set the boot order on ppc64le LPARs -...
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