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.

NextJS 7 compatibility

See original GitHub issue

Module parse failed: Identifier 'React' has already been declared (23:7)

Due to this commit, this plugin is not compatible with last version of https://github.com/zeit/next.js.

Workaround: using v4.0 of this plugin

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:28 (6 by maintainers)

github_iconTop GitHub Comments

12reactions
adamsoffercommented, Aug 6, 2019

I’m still getting this error on Next 9. I’m forced to import React in my component file to avoid this error. Any ideas why?

8reactions
dfoverdxcommented, Nov 30, 2018

In case anyone else runs into this issue, my file had

import { Component } from 'react';

Ironically, changing it to

import React, { Component } from 'react';

fixed it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blog - Next.js 7
Thanks to webpack 4, Babel 7 and many improvements and optimizations on our codebase, ... Note: this upgrade is fully backwards-compatible.
Read more >
Next.js 7 / Webpack 4 compatibility #1 - GitHub
This plugin oddly does not work with Next 7. I spent multiple hours trying to figure out what was going wrong without success....
Read more >
Next.js 7, a framework for server-rendered React applications ...
Yesterday, the Next.js researchers announced that the latest version–v7– of its React Framework is now production-ready. The Next.js 7 has ...
Read more >
The best styling options for Next.js - LogRocket Blog
Thankfully, Next.js offers built-in support for CSS in a variety of ... it is a popular framework compatible with CSS and offers lots...
Read more >
7 New Features introduced in Next js 11 in 2021
Make sure your package.json is updated with the latest Next js and React js versions. Backward compatibility warning. Next.js 11 introduces some ...
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