If you're creating a bug/problem report, please include the following:
- ABP Framework version: v5.0.0 (commercial)
- UI type: MVC
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace: JavaScript error:
Uncaught TypeError: Cannot read properties of undefined (reading 'controllers')
- Steps to reproduce the issue:"
- Create a brand new project with ABP Suite.
- Create one or more entities.
- Generate and run the project.
- Log in.
- Select an entity from the left-hand menu.
- Select the + New [Entity Name] button or Advanced filters button.
The JavaScript error will appear, referencing line 3 of the generated index.js
file, which will be something like this: var myEntityService = window.myProject.controllers.myEntities.myEntity;
I've tried creating two new projects and both failed in the same way. When I tried upgrading the ABP packages to 5.0.1, I received all sorts of errors about not being able to find those packages, so that's a dead-end and a whole different issue.
3 Answer(s)
-
0
Hi,
We will check it.
-
0
Hi,
This is a problem with the template, we will fix it. ps: your ticket refunded
For now, you can try:
Add
typeof(<YouProjectName>HttpApiModule)
to<YouProjectName>WebModule
and removetypeof(AbpHttpClientWebModule)
, it should be work. -
0
This change worked, thank you :)