So I’m writing a package that requires meteorflux:reactive-state
. This is the relevant part of my package.js file:
Package.onUse(function(api) {
api.versionsFrom('1.2.1');
api.use('ecmascript');
api.use('react');
api.use('react-meteor-data');
api.use('meteorflux:dispatcher');
api.use('meteorflux:reactive-state');
api.addFiles(['lib/form-state.js', 'SmartForm.jsx', 'SmartInput.jsx']);
api.export(['SmartForm', 'SmartInput']);
});
When I try to run my app using this package, I get an error:
ReferenceError: ReactiveState is not defined
…from this line:
FormState = new ReactiveState();
Is there something I’m missing? I’ve got the api.use('meteorflux:reactive-state')
line in my package.js file.