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.

Import error when using Stream

See original GitHub issue

Trying to use ResponsiveSankey 0.66 and it leads to import errors. Maybe this is due to the typescript conversions?

Failed to compile ./node_modules/@nivo/core/dist/nivo-core.es.js Attempted import error: ‘Tooltip’ is not exported from ‘@nivo/tooltip’.

  "dependencies": {
    ...
    "@nivo/core": "^0.65.0",
    "@nivo/sankey": "^0.61.2",
    "@nivo/stream": "^0.66.0",
    "@nivo/tooltip": "^0.63.0",
    "@testing-library/jest-dom": "^4.2.4",
    "@testing-library/react": "^9.5.0",
    "@testing-library/user-event": "^7.2.1",
    "@webcomponents/webcomponentsjs": "^2.4.3",
    "moment": "^2.27.0",
    "node-sass": "^4.14.1",
    "prop-types": "^15.7.2",
    "query-string": "^6.13.4",
    "react": "^16.13.1",
    "react-dom": "^16.13.1",
    "react-json-view": "^1.19.1",
    "react-router-dom": "^5.1.2",
    "react-scripts": "3.4.4",
    "vendor-copy": "^2.0.0"
  },

I tried to replicate the issue in a code sandbox but I am actually seeing a different issue there.

TypeError (0 , $csb__react.memo) is not a function

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
wyzecommented, Dec 8, 2020

@mvdobrinin The sandbox is on React 16.5.x, and we need 16.8 to support the use of hooks.

0reactions
Syedateeq190commented, Sep 20, 2021

It didn’t worked, even after changing t

@plouc Thanks, I changed them all to ^0.66.0 and it seems to work.

    "@nivo/core": "^0.66.0",
    "@nivo/sankey": "^0.66.0",
    "@nivo/stream": "^0.66.0",
    "@nivo/tooltip": "^0.66.0",

There are some confusing warnings because of the way the peer dependencies are defined, but it seems they don’t matter.

npm WARN @nivo/core@0.66.0 requires a peer of @nivo/tooltip@0.63.0 but none is installed. You must install peer dependencies yourself.
npm WARN @nivo/tooltip@0.66.0 requires a peer of @nivo/core@0.65.0 but none is installed. You must install peer dependencies yourself.

Didn’t work for me 😦

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error importing java.util.stream.Stream in Android Studio
I am using Java JDK version 1.8.0_60-b27 for both Netbeans and Android Studio. I could not import java.util.function.Consumer and java.util.stream.
Read more >
Initialize stream error during import
Initialize stream error during import. Problem. When importing MX7 data in Trimble Business Center, an error occurs: [project path]. The TMI import was ......
Read more >
Error Streams Sample
In StreamBase Studio, import this sample with the following steps: From the top-level menu, select File>Import Samples and Community Content. Enter err ...
Read more >
Unable To Import Stream Data Template - My Oracle Support
When attempting to import Stream data template, the following error occurs. ... 1.Work order context information is invalid. 2.Equipment context ...
Read more >
Stream | Node.js v19.3.0 Documentation
A stream is an abstract interface for working with streaming data in Node.js. ... The stream is closed when the 'error' event is...
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