Aug 26, 2015
0
Level 2
React + Exilir + Browserify not loading local react modules
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 or to participate in this conversation.