Hi all,
I'm trying to implement swagger as a tool in my front-end kibana custom pluggin, but i keep getting error that i need appropriate loader to handle file types which needs to be done in a webpack file, have anyone manage to implement successfully, can you please share some experience on how to do it. Im struggling all week, i have tried with installing swagger-ui-react, to creare a component and visualize it, but apperantly there is a well know bug in the swagger comunity for that and i wasn't able to run the kibana pluggin, Now i'm trying with swagger-ui-dist library, where I need to specify some props to SwaggerUIBundle object, but i receive this error :
WARNING in ./node_modules/swagger-ui-dist/swagger-ui-bundle.js 2:670639
│ Module parse failed: Unexpected token (2:670639)
│ You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See Concepts | webpack
This are the errors in Kibana in the browser i receive the following error:
asyncToGenerator.js:6 Uncaught (in promise) TypeError: swagger_ui_dist__WEBPACK_IMPORTED_MODULE_1__.SwaggerUIBundle is not a function
I really need help with that, will be very grateful. Thanks in advance!