Closed kahummer closed 4 years ago
@ciremusyoka @kelvin-muchiri Please update the issue once you get a fix to this I'm still researching on the same
@kahummer @kelvin-muchiri This bug is caused by the way we reference gatekeeper module
.
import { ... } from '@onaio/gatekeeper';
produces the error.import { ... } from '@onaio/gatekeeper/dist/components/login';
does not. Can't figure out why option 1
which is the right way is causing the error.
@kahummer @kelvin-muchiri This bug is caused by the way we reference
gatekeeper module
.
import { ... } from '@onaio/gatekeeper';
produces the error.import { ... } from '@onaio/gatekeeper/dist/components/login';
does not.Can't figure out why option
1
which is the right way is causing the error.
@moshthepitt what is your thought on this?
@ciremusyoka what is the specific thing that is being imported in this case? It may be such that this thing is not exported from the index file at '@onaio/gatekeeper'
- in which case we can update gatekeeper to export it.
@moshthepitt useOAuthLogin
and AuthorizationGrantType
which i believe they are at the index file of '@onaio/gatekeeper'
@ciremusyoka @moshthepitt @kahummer Yea, I remember discussing this with @p-netm he was supposed to create an issue for it. But I remember I used @onaio/gatekeeper/dist/components/login
Or is the issue being raised by import { AuthorizationGrantType } from '@onaio/gatekeeper';
?
@kelvin-muchiri yes this import { AuthorizationGrantType } from '@onaio/gatekeeper';
is what raised the issue.
Are we using the right version of gatekeeper?
@kahummer @ciremusyoka @kelvin-muchiri what's the status of this fix?
When creating an optimized production build on staging we get this error: