Skip to content
This repository was archived by the owner on Nov 16, 2018. It is now read-only.
This repository was archived by the owner on Nov 16, 2018. It is now read-only.

Uncaught ReferenceError: Icon is not defined #1

Closed
@qblake

Description

@qblake

When i tried to use DateTimePicker, I get this error.

Activity

chollier

chollier commented on May 10, 2014

@chollier
Member

Hi Alexander, 

Thanks for reporting that bug, I'll try to correct that this week end or early next week. I also plan to add some examples and a doc. Keep you in touch and glad you found some interest in the component !

Sent from Mailbox

On Sat, May 10, 2014 at 1:45 PM, Aleksandr notifications@github.com
wrote:

When i tried to use DateTimePicker, I get this error.

Reply to this email directly or view it on GitHub:
#1

qblake

qblake commented on May 11, 2014

@qblake
Author

Look at react-bootstrap components, maybe it will be helpful for you.

ojame

ojame commented on Jul 8, 2014

@ojame

I'm also having this issue. It's because the Icon component isn't defined anywhere. If you include the below somewhere before you import DateTimePicker, it will just show a string instead of a glyph, but without error:

/** @jsx React.DOM */
Icon = React.createClass({
  render: function() {
    return (
      <span>{this.props.name}</span>
    )
  }
});
chollier

chollier commented on Aug 18, 2014

@chollier
Member

Hey guys, sorry for the delay, I just published some changes that remove the Icon dependency and use react-bootstrap's Glyphicon instead. I've also published an npm version : https://github.com/quri/react-bootstrap-datetimepicker-npm

qblake

qblake commented on Aug 19, 2014

@qblake
Author

👍

added a commit that references this issue on Sep 19, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @chollier@ojame@qblake

        Issue actions

          Uncaught ReferenceError: Icon is not defined · Issue #1 · quri/react-bootstrap-datetimepicker