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.

More runtime compatibility

See original GitHub issue

p-* function is useful, thank you for your great work.

Recently I had some trouble when I use them in some non node.js runtime, without bundler.

The error cause by:

p-* -> https://github.com/sindresorhus/aggregate-error -> https://github.com/sindresorhus/clean-stack/blob/main/index.js#L1

There is no os module in non node.js runtime.

So, it’s possible to stop using aggregate-error in p-*?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:7
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
silverwindcommented, May 25, 2022

I too had to polyfill node os to get p-all to work in browsers which seems a bit silly.

Imho, aggregate-error should drop its dependency on clean-stack as the stack cleaning performed there seems rather opinionated.

1reaction
silverwindcommented, Sep 27, 2022

This new imports usage seems to break at least Jest (in ESM mode) which apparently does not support such resolution.

    Cannot find module '#home-directory' from 'node_modules/clean-stack/index.js'

      at Resolver._throwModNotFoundError (node_modules/jest-resolve/build/resolver.js:487:11)
          at async Promise.all (index 1)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Runtime Compatibility - Building Management WebHelp
Building Operation supports runtime compatibility between servers running two versions on a single system, during an upgrade process.
Read more >
Version compatibility in .NET Framework - Microsoft Learn
To define the specific versions on which your app runs, add one or more <supportedRuntime> elements to your app's configuration file.
Read more >
CUDA Compatibility :: NVIDIA Data Center GPU Driver ...
CUDA Compatibility document describes the use of new CUDA toolkit components on systems with older base installations.
Read more >
Lambda runtimes - AWS Documentation
A runtime can support a single version of a language, multiple versions of a language, or multiple languages. Runtimes specific to a language...
Read more >
Compatibility Guide for JDK 8 - Oracle
Behavioral: Behavioral compatibility includes the semantics of the code that is executed at runtime. For more information, see Kinds of Compatibility, ...
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