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.

Compiling error on latest 0.3.1 & React 17

See original GitHub issue
SyntaxError: /Users/benoror/code/baseql-docs/pages/index.md: pragma and pragmaFrag cannot be set when runtime is automatic
Screen Shot 2020-11-29 at 18 58 15

Dependencies versions:

  {
    "next": "^10.0.3",
    "nextra": "^0.3.1",
    "nextra-theme-docs": "^0.3.1",
    "react": "^17.0.1",
    "react-dom": "^17.0.1"
  }

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
shudingcommented, Jan 2, 2021

You can add this .babelrc configuration to your project root:

{
  "presets": [
    [
      "next/babel",
      {
        "preset-react": {
          "runtime": "classic"
        }
      }
    ]
  ]
}

Tested and it would solve the problem for now. 👍

1reaction
smakoshcommented, Dec 21, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not resolve dependency error peer react@"^16.8.0
Due to this error, my build is getting failed in netlify. error: $ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable...
Read more >
React v17.0 – React Blog
The React 17 release is unusual because it doesn't add any new developer-facing features. Instead, this release is primarily focused on ...
Read more >
Changelog - Cypress Documentation
Cypress dropped support for Node.js 12, 15 and 17. ... Compile errors are now surfaced in the command log during tests for Angular...
Read more >
Bug listing with status UNCONFIRMED as at 2022/12/24 17 ...
Bug:128538 - "sys-apps/coreutils: /bin/hostname should be installed from coreutils not sys-apps/net-tools" status:UNCONFIRMED resolution: severity:enhancement ...
Read more >
ChangeLog-0.3.17 - ReactOS Wiki
CORE-8288 - Typos, "licence" should be "license" for en-US strings. CORE-8290 - New error in shell-experiments compilation (rev. 63537). CORE- ...
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