-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting stuck on the implementation #15
Comments
Same issue here. @ReisoAphi what did you end up doing? |
I am facing the same issue, any workaround there? |
I think you guys didn't put |
|
It happens because the ComponentLoader passed to the ImportExport feature is not known by Adminjs. Correct format of the app.js is: import { ComponentLoader } from 'adminjs'
const componentLoader = new ComponentLoader()
const adminOptions: AdminJSOptions = {
componentLoader,
resources: [createCustomResource(componentLoader)]
}
}
const adminjs = new AdminJS(adminOptions); Now, the script that defines the resource with the ImportExportFeature: let createCustomResource = (componentLoader) => {
return {
resource: DatabaseModel,
features: [
importExportFeature({ componentLoader }),
],
}
} If you define the componentLoader in the script with the resource using In short, you should have only one instane of ComponentLoader within your app. |
@ahmetson looks like this works, maybe this should go in the docs? |
not usefull for me still getting same error |
In my case, I wasn't bundling the components after using admin.watch() and admin.initialize() it worked |
@ReisoAphi Hi! Any solution to this? I'm facing the same problem with the export functionality. Thanks |
Whenever you add a React implementation, you need to bunddle. Add to your admin app a watcher, admin.watch(), let the app run and it will bundle whenever the app sees a react change. And dont forget to add the feature to your table features property. |
Im Getting this msg from the adminJs app: "You have to implement action component for your ActionSee:the documentation"
Any clue?
The text was updated successfully, but these errors were encountered: