Comments (7)
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.
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.
BigCalendar = require('react-big-calendar');
moment = require('moment');
BigCalendar.setLocalizer(
BigCalendar.momentLocalizer(moment)
);
from react-big-calendar.
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.
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.
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.
Ok. I'll let you know.
from react-big-calendar.
Related Issues (20)
- Translating README.md in Italian for wider accessibility
- warning ..\..\package.json: No license field HOT 1
- Add Russian and Chinese cultures to Localization (accessibility)
- Add Japanese Language Support For Localization
- Bug: Drag and Drop not functioning properly and duplicating events HOT 2
- Bug: Drag and Drop Examples link is throwing an error HOT 1
- Clicking on Day Cell Creates Empty Events Without Event Name Input HOT 1
- DragAndDrop with custom components causes re-mount on each render HOT 1
- Enhance User Understanding with Persona Development
- swap resource and day header in week view. HOT 1
- Slack invite expired HOT 1
- react-big-calendar selection offset HOT 1
- Luxon localizer should use LLL to format month instead of MMM HOT 3
- Drag and Drop example code has issues when dropping to / from all-day events HOT 1
- Cant create custom event design for month view
- Day does not show in week view HOT 1
- Pass 'accessors' prop to the 'DayColumnWrapper' component HOT 2
- Expired slack invitation link HOT 2
- Vertical scrolling of multiple days (vertical, hourly week view)? HOT 1
- When pass resizableAccessor=true, and draggableAccessor=false, than resizable is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-big-calendar.