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.

package not working

See original GitHub issue

Hello,i will install package but i can’t use it it’s show me many error’s

Uncaught Error: Element ref was specified as a string (inner) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a functional component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded

my component

import React, { Component } from 'react'
import BigCalendar from 'react-big-calendar'
import moment from 'moment'
BigCalendar.setLocalizer(BigCalendar.momentLocalizer(moment))
 
class CalendarDashboardBody extends Component {
    state = {
        fake: [
            {
                id: 0,
                title: 'All Day Event very long title',
                allDay: true,
                start: new Date(2015, 3, 0),
                end: new Date(2015, 3, 1),
              },
              {
                id: 1,
                title: 'Long Event',
                start: new Date(2015, 3, 7),
                end: new Date(2015, 3, 10),
              }
        ]
    }
    render() {
        return (
            <BigCalendar
                events={this.state.fake}
                startAccessor='startDate'
                endAccessor='endDate'
            />
        )
    }
}

export default CalendarDashboardBody

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
ZhoraKhachatryanArmweb-zzcommented, Sep 3, 2018

Thanks,i solved it,problem is the, bundle.js in my index.html i have the <script src="/bundle.js"></script> I delete it and it’s working

1reaction
jquensecommented, Sep 3, 2018

Make sure you only have one copy of each. Generally bundlers give you hooks for doing that, like alias in webpack

Read more comments on GitHub >

github_iconTop Results From Across the Web

Packages not loading since updating RStudio - General
I initially discovered problems just with installing dplyr and tidyr with the updated version of R (R-3.4.2), but I am now having trouble...
Read more >
Troubleshooting - Package Control
Troubleshooting ; Select the View > Show Console menu entry; Look for any lines starting with Package Control: ; Select the Preferences >...
Read more >
NPM install for packages not working - node.js - Stack Overflow
I tried using sudo, but afterwards I would get a response "command not found." I have a feeling the packages may not be...
Read more >
Android Package Installer Not Working - YouTube
Let's fix your Android package installer if it's not working properly in this quick and easy guide.If you find that Android's package ......
Read more >
Package installed but not working - LaTeX Stack Exchange
According to the TeX Live Utility, the package is installed (I tried re-installing it as well). However, when I try typesetting via TeXShop,...
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