Skip to content

Instantly share code, notes, and snippets.

@Quemia
Last active September 27, 2021 01:47
Show Gist options
  • Select an option

  • Save Quemia/de1a1d70326d062c61868f1d48f704a5 to your computer and use it in GitHub Desktop.

Select an option

Save Quemia/de1a1d70326d062c61868f1d48f704a5 to your computer and use it in GitHub Desktop.

Create file called .babelrc in your root directory and add this code

    {
      "presets": ["next/babel"],
      "plugins": []
    }

And in .eslintrc replace the existing code with

    {
      "extends": ["next/babel"]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment