premisedata / dynamic-data-form-extension

Backstage Plugin - Dynamic Data Form Extension (Frontend and Backend Plugins)
Apache License 2.0
9 stars 7 forks source link

Fix import path for example provider #19

Closed lleon-uala closed 6 months ago

lleon-uala commented 8 months ago

Existing path is missing the name of the provider:

import { exampleRouter } from '../providers';

This should point to examples, otherwise it results in an error.

Backend failed to start up TypeError:
 _plugins_form_data__WEBPACK_IMPORTED_MODULE_11___default(...) is not a function
nthings commented 8 months ago

I think is best to add a index.ts file with all the exports on the providers folder that way you can have multiple providers into its own file for example some routes that call GitHub API and another one for AWS calls. https://github.com/premisedata/dynamic-data-form-extension/pull/20