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.

Upgrading from 1.3.3 to 1.3.4 gives worrying build-time warnings

See original GitHub issue

I’m using jotai in a Next.js project, with nothing special in particular with the setup.

When I upgrade to 1.3.4 I get this in the build output, which seems reasonably important. My guess is that it’s to do with the way the exports were changed to use wildcards?

Reverting back to 1.3.3 removes the warning.

warn  - ./node_modules/jotai/esm/index.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

./node_modules/jotai/esm/utils.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

./node_modules/jotai/esm/utils.js
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:6
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
prichodkocommented, Sep 14, 2021

FYI, this is also happening in Next.js, which doesn’t use esbuild.

9reactions
Thisencommented, Sep 17, 2021

Just to be clear, this is caused by the version of esbuild that builds jotai, it’s not because of the consumers environment. This doesn’t have anything to do with Next.js or Gatsby. 🙂

Read more comments on GitHub >

github_iconTop Results From Across the Web

chore(build): pin esbuild for now and replace size plugin with github ...
dai-shi linked an issue on Sep 19, 2021 that may be closed by this pull request. Upgrading from 1.3.3 to 1.3.4 gives worrying...
Read more >
@objc Warnings Upgrading To Swift 4 - Use Your Loaf
Open a Swift 3 project in Xcode 9 and it will warn you that you can upgrade to Swift 4. If you accept...
Read more >
AngularJS: Developer Guide: Migrating from Previous Versions
This fixes issues where input[date] and input[number] cannot be validated because the $viewValue string is parsed into Date and Number respectively (starting ...
Read more >
Notes on Data Structures and Programming Techniques ...
Many programming environments will give you a rich collection of built-in data structures as part of their standard library.
Read more >
BitBake User Manual - the Yocto Project Documentation
Classes; 1.3.4. ... This manual provides information on the BitBake tool. ... Handle inter-package dependencies (build time on target architecture, ...
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