Giter VIP home page Giter VIP logo

Comments (7)

stevoland avatar stevoland commented on April 27, 2024

Hmm, haven't tried with browserify - I just assumed it would work. Can you provide some more details? What do you mean by the exports being created dynamically?

from react-bootstrap.

nickdima avatar nickdima commented on April 27, 2024

You create the exports by reading the file system and browserify can't handle that.

But, on another note, it seems that there's a bug in main.js because you're doing path('.', LIB, file) where path is actually an object and not a function. On the latest version of node it breaks.

from react-bootstrap.

stevoland avatar stevoland commented on April 27, 2024

Yikes, that's rubbish. Should be path.join I expect. I'll fix that and look into generating main.js in the build. As a workaround would requiring modules directly work with browserify?

require('react-boostrap/Alert');

from react-bootstrap.

nickdima avatar nickdima commented on April 27, 2024

Yes, direct requires would work.

from react-bootstrap.

stevoland avatar stevoland commented on April 27, 2024

whoops, wrong button. That'll be why our tests work then!

from react-bootstrap.

stevoland avatar stevoland commented on April 27, 2024

Should be fixed with 0.7.0. Please confirm.

from react-bootstrap.

micahlmartin avatar micahlmartin commented on April 27, 2024

It's not working with browserify for me. Calling require('react-bootstrap/Row'); returns this:

function (props, children) {
      var descriptor = factory.apply(this, arguments);

      for (var i = 1; i < arguments.length; i++) {
        validateChildKeys(arguments[i], descriptor.type);
      }

      var name = descriptor.type.displayName;
      if (propTypes) {
        checkPropTypes(
          name,
          propTypes,
          descriptor.props,
          ReactPropTypeLocations.prop
        );
      }
      if (contextTypes) {
        checkPropTypes(
          name,
          contextTypes,
          descriptor._context,
          ReactPropTypeLocations.context
        );
      }
      return descriptor;
    }

I've installed "react-bootstrap": "^0.12.0" and using it with react-rails.

from react-bootstrap.

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.