React + Exilir + Browserify not loading local react modules

Posted 3 years ago by CrtlAltDylan

Trying to use the ES5 style of importing modules:

var React = require('react');
var $ = require('jquery');

But the problem comes when trying to use local scripts I've made:

    mix.browserify([
    '../../../node_modules/react-bootstrap/dist/react-bootstrap.min.js',
        '/AlphaCharacter.js',
        '/Alphabet.js'

    ], 'public/js/Alphabet.js');

The Alphabet react module in this case has a AlphaCharacter dependency, and when it's trying to render:

Uncaught TypeError: AlphaCharacter is not a named module

How can I expose AlphaCharacter to the Alphabet? Thanks!

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.