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.

Issue: Next js build failure (Can't import named export `Provider`)

See original GitHub issue

Attempting to build urql with next js,i receive the following errors depending on how the app is set up:

Can't import the named export 'concat' from non EcmaScript module (only default export is available)

Can't import the named export 'Provider' from non EcmaScript module (only default export is available)

urql version 1.10.3

** nextjs version ** 9.3.0

Steps to reproduce https://github.com/skene/nextjs-with-urql

Expected behavior

build successfully.

Actual behavior fails on build.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
skenecommented, Mar 19, 2020

Awesome, thanks a lot for being so fast and communicative!

0reactions
geisterfurz007commented, Apr 5, 2021

Alright, I will try my best to reproduce this on a small scale tomorrow then and post in Discussions if I am able to do it. After a few hours of battling webpack and other tooling I was just desperately hoping I didn’t mess up once more. Thanks for the fast response, I really appreciate it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue: Next js build failure (Can't import named export Provider ...
Attempting to build urql with next js,i receive the following errors depending on how the app is set up: Can't import the named...
Read more >
module-not-found - Next.js
A module not found error can occur for many different reasons: The module you're trying to import is not installed in your dependencies;...
Read more >
React-hook-form build problem when upgrading nextjs to ...
SyntaxError : Named export 'set' not found. The requested module react-hook-form is a CommonJS module, which may not support all module.exports ...
Read more >
How to Bypass ES Modules Errors in Next.js with Dynamic ...
In this article, I'll walk you through an error you may get when you are building JavaScript apps with Next.js, and how to...
Read more >
Error: Should not import the named export... in editor-core
Hi, I'm trying to use @atlaskit/editor-core for the first time. I installed it with npm i @atlaskit/editor-core, my npm version is 8.3.0 and ......
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