Coder Social home page Coder Social logo

is-lite's Issues

is.plainObject returns false even when both objects are same

I am currently using react-joyride in my current project, and I am facing an issue when starting the tour. The application fails with with error Error: Expected plain objects or array. Upon investigation I found that is.plainObject method of is-lite library is returning false even when both the objects are similar.

Specifically the comparison prototype === Object.getPrototypeOf({}) https://github.com/gilbarbara/is-lite/blob/main/src/index.ts#L233-L235 is returning false.

Issue occurs during react-joyride: step:0 and while comparing previousProps with this.props. Unfortunately I can not share the code where this issue is coming because of company's privacy policy. But please let me know what other information I can provide.

Interestingly if I create a standalone project and use react-joyride there, everything works fine.

Can it be related to polyfills?

Cannot find source file '../src/index.ts'

Hi! I've installed is-lite library using npm and have an error: Can't resolve '../src/index.ts'. Version 0.7.0.
Updated: I think react-joyride has the dependence problem (third screen). React-floater has same problem.

image

image

image

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.