GithubHelp home page GithubHelp logo

Comments (3)

mrousavy avatar mrousavy commented on April 27, 2024 27

I never said it was an error, I'm just reporting it because it "can result in uninitialized values".
Looks like here this can't be the case, but the warning is annoying nonetheless.

from d3-interpolate.

martsie avatar martsie commented on April 27, 2024 1

This can cause issues when using react-native, breaking end-to-end tests and strict environments. For other react-native using the following code may prevent log boxes from showing up in UI when these warnings occur until the library is updated with a fix (although #97 and #99 indicate that it's probably not high on the priority list). Warnings will still show up in metro logs.

// Add to your root index.js file.
import { LogBox } from 'react-native'

LogBox.ignoreLogs([
  // See https://github.com/d3/d3-interpolate/issues/97 and https://github.com/d3/d3-interpolate/issues/99.
  'Require cycle: node_modules/d3-interpolate/src/value.js -> node_modules/d3-interpolate/src/array.js -> node_modules/d3-interpolate/src/value.js\n\nRequire cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.',
  'Require cycle: node_modules/d3-interpolate/src/value.js -> node_modules/d3-interpolate/src/object.js -> node_modules/d3-interpolate/src/value.js\n\nRequire cycles are allowed, but can result in uninitialized values. Consider refactoring to remove the need for a cycle.',
])

from d3-interpolate.

mbostock avatar mbostock commented on April 27, 2024

This is not an error. Circular imports are allowed in ES modules.

from d3-interpolate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.