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
Error: Component "RecordLink" and "RecordDifference" has not been bundled, ensure it was added to your ComponentLoader instance (the one included in AdminJS options).
#21
Open
tbsantosDev opened this issue
Apr 3, 2024
· 3 comments
hey guys, I'm stuck with this error when trying to implement loggerFeature in my project, does anyone have any idea how to resolve it?
Error 1 : Error: Component "RecordLink" has not been bundled, ensure it was added to your ComponentLoader instance (the one included in AdminJS options).
Error 2: Error: Component "RecordDifference" has not been bundled, ensure it was added to your ComponentLoader instance (the one included in AdminJS options).
The text was updated successfully, but these errors were encountered:
import AdminJs, { ComponentLoader } from 'adminjs'
import AdminJsExpress from '@adminjs/express'
import AdminJsSequelize from '@adminjs/sequelize'
import { sequelize } from '../database/index.js'
import { adminJsResources } from './resources/index.js'
import bcrypt from 'bcrypt'
import { User } from '../models/User.js'
//import { locale } from './locale.js'
import { createLoggerResource } from "@adminjs/logger";
import { Log } from "../../models/Log.js";
import { ComponentLoader } from "adminjs";
const componentLoader = new ComponentLoader()
const logResourceOptions: any = {
componentLoader,
resource: Log,
featureOptions: {
propertiesMapping: {
recordTitle: "title", //field to store logged record's title
userIdAttribute: "id", //primary key currently logged user
},
},
};
import importExportFeature from "@adminjs/import-export";
import loggerFeature from "@adminjs/logger";
import logResourceOptions from '../resources/log.js'
hey guys, I'm stuck with this error when trying to implement loggerFeature in my project, does anyone have any idea how to resolve it?
Error 1 : Error: Component "RecordLink" has not been bundled, ensure it was added to your ComponentLoader instance (the one included in AdminJS options).
Error 2: Error: Component "RecordDifference" has not been bundled, ensure it was added to your ComponentLoader instance (the one included in AdminJS options).
The text was updated successfully, but these errors were encountered: