GithubHelp home page GithubHelp logo

Comments (7)

macejmic avatar macejmic commented on August 28, 2024

I'm trying to figure out why I'm getting this error, for example:

calendar = <BigCalendar />

console.log calendar

# ReactElement {key: null, ref: null, _owner: ReactCompositeComponentWrapper, _context: Object, _store: Object}

So this looks like that in calendar variable is valid react element but maybe somewhere inside your component is some problem. What do you think?

from react-big-calendar.

jquense avatar jquense commented on August 28, 2024

Hey there, I am looking into it. but these sort of issues indicate something not handling imports correctly which suggests taht your build is at fault...

How are you importing the calendar?

from react-big-calendar.

macejmic avatar macejmic commented on August 28, 2024
BigCalendar = require('react-big-calendar');
moment      = require('moment');

BigCalendar.setLocalizer(
  BigCalendar.momentLocalizer(moment)
);

from react-big-calendar.

jquense avatar jquense commented on August 28, 2024

Unfortunately I can't repo this, so I am kind of at the end of my ability to troubleshoot the issue.

you can set some breakpoints around and see whats going on, but it seems like browserify is doing something odd to the package.

if you console.log BigCalendar.ControlledComponent do you get anything?

if you look at the render method in the uncontrollable package (a dep of react-big-calendar) where the error is actually occurring can you follow the stack trace back up to see where something is going wrong?

from react-big-calendar.

macejmic avatar macejmic commented on August 28, 2024
console.log BigCalendar.ControlledComponent

# application.js:99644(props, context, updater) {
      // This constructor is overridden by mocks. The argument is used
      // by mocks to assert on what gets mounted.

      if ("development" !== 'production')…

from react-big-calendar.

jquense avatar jquense commented on August 28, 2024

yeah so it doesn't look like anything is wrong with the files themselves.

I would try and follow the stacks to the main issue to pin it down. If you do end up finding something wrong with this package please let me know I will fix it quickly

from react-big-calendar.

macejmic avatar macejmic commented on August 28, 2024

Ok. I'll let you know.

from react-big-calendar.

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.