You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
We are trying to integrate Frontegg into an Ant Design Pro boilerplate and running into an error when the library is imported. Ant Design Pro uses a plugin system that obscures the root component and makes wrapping it with the Frontegg provider rather circuitous.
The plugin generates the @frontegg provider wrapper code into the relevant directory - src/.umi/plugin-frontegg-access within the dashboard repository.
When we try initializing the dashboard, we get the following error.
Describe the bug
We are trying to integrate Frontegg into an Ant Design Pro boilerplate and running into an error when the library is imported. Ant Design Pro uses a plugin system that obscures the root component and makes wrapping it with the Frontegg provider rather circuitous.
You can see our Frontegg plugin below:
https://github.com/Network-Chimp/umi-plugin-access/blob/master/src/utils/getAccessProviderContent.ts#L49
The plugin generates the @frontegg provider wrapper code into the relevant directory -
src/.umi/plugin-frontegg-access
within thedashboard
repository.When we try initializing the dashboard, we get the following error.
To Reproduce
Steps to reproduce the behavior:
cd dashboard; npm i; npm start
http://localhost:8000/
src/.umi/plugin-frontegg-access
Expected behavior
The dashboard should load with the provided Frontegg data.
Screenshots
The text was updated successfully, but these errors were encountered: