-
Notifications
You must be signed in to change notification settings - Fork 43
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
Receiving property.type is not a function #5
Comments
Hello.
|
Hi, Versions and env details:
Database is postgres. Database server version is Postgres 12 AdminBroOptions:
User entity
ProfilePreference Entity
Generated query and error message
Some details and comments:Issue is happening when I'm clicking to any Entity name on AdminBro sidenav. Items are not listing. Item count is always 0. |
The same error is retrieving for any of entities
I did run the query manually on DB IDE and query returns the data without any problem. Generated query is okay |
Probably you forgot to register adapter before running
|
Nope, adapter is registered already. Here is the starter method:
|
Your idea doesn't solve the problem. Try to import { Database, Resource } from "admin-bro-typeorm";
createConnection().then(async connection => {
const app = express()
const port = 3000
const options: AdminBroOptions = {
// databases: [connection],
resources: [User, ProfilePreferences, Category]
}
const adminBro = new AdminBro(options)
const router = AdminBroExpress.buildRouter(adminBro)
app.get('/', (req, res) => res.send('Hello World!'))
app.use(adminBro.options.rootPath, router)
app.listen(port, () => console.log(`Admin panel app listening on port ${port}!`))
}).catch(error => console.log(error)); Is it whole piece? You still missing line: AdminBro.registerAdapter({ Database, Resource }); |
This breaking issue still continues unfortunately |
Did you tried this?
|
Receiving undefined for Property. console.log fails |
import Property to this file.
Then use. |
I'm adding full console.log here: console.log(property instanceof Property, property) Last column which is printed successfully is |
Invite me as collaborator to your repo |
Hi I added you as a collaborator to the project. There is needed some env configurations and will send you the details as an email |
So? |
I added you as a colloborator as you said @Arteha . You can see and reproduce the error if you want |
Send me a link to your repo. |
Here is it: REPO LINK Admin bro integration is on this branch: |
Also receiving the same error, only difference, I'm using Aurora MySQL. |
I also had the same problem - adding |
I added bugfix to pull requests some time ago, any progress on it? |
@szalo13 Hello. |
I've checked it locally.
for other fields, e.g. |
Got same problem, added: |
Hi,
So are You going to merge this fix? :)
|
The problem is patched in v0.1.6-alpha.9 |
Using express server.
Received error stack:
The text was updated successfully, but these errors were encountered: