scoped var error, require works correctly, need to make the component lib more robust.