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.

@emotion/server - some dependencies seriously out of date

See original GitHub issue

First, many thanks for providing @emotion/server – great to have SSR working out of the box! 🍺

Having trouble using the package due to outdated/dead (?) html-tokenize / multipipe dependencies. Getting duplicate package errors from webpack:

1.0.34
    ~/html-tokenize/~/readable-stream
      * Dependency graph
        @internations/ds@0.1.0 -> @emotion/server@^11.4.0 -> html-tokenize@^2.0.0 -> readable-stream@~1.0.27-1

3.6.0
    ~/duplexer2/~/readable-stream
      * Dependency graph
        @internations/ds@0.1.0 -> @emotion/server@^11.4.0 -> multipipe@^1.0.2 -> duplexer2@^0.1.2 -> readable-stream@^2.0.2

Any plans to switch the packages to the ones that are more actively maintained?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
srmaguracommented, Feb 25, 2022

@TheSonOfThomp You are importing @emotion/server in client-side code. This is likely to cause issues because Node.js APIs are not available in the browser.

This is a separate issue from the original post. If you would like to continue the discussion, please create a GitHub discussion or post in our Slack channel. Thanks.

0reactions
srmaguracommented, Feb 25, 2022

Getting back to the issue posted by the OP:

  • I don’t think the duplicate / out-of-date packages are causing any issues.
  • There don’t seem to be any more up-to-date alternatives.

So I’m closing this issue for now. If anyone has recommendations for a way forward (e.g. up-to-date packages we could use), let us know.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM tries fetching a dependency that is never requested
I look into the logs, and see that multipipe is a dependency of emotion-server which is a top-level dependency in my project:
Read more >
@emotion/server - npm
@emotion/server. TypeScript icon, indicating that this package has built-in type declarations · Readme · Code Beta · 4 Dependencies · 144 Dependents ...
Read more >
Issue 51187 - UI - stop importing Cockpit's PF css - 389-ds-base
+ /* Import our own fonts since the PF4 font-face rules are filtered out with ... If some other package has the vulnerability...
Read more >
Emotion 8 - by Kye Hohenberger - Medium
In this release we've done some great things such as rewriting the core, removing the need for babel and adding source map support....
Read more >
jest encountered an unexpected token syntaxerror: unexpected ...
This is what you need to do: To have some of your "node_modules" files ... binary assets) you can stub them out with...
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