-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Micro Frontends with Angular doesn't compile #25550
Milestone
Comments
Changing the imports and adding a type to --- a/blog/src/main/webapp/app/entities/blog/blog/update/blog-update.component.ts
+++ b/blog/src/main/webapp/app/entities/blog/blog/update/blog-update.component.ts
@@ -7,11 +7,11 @@ import { finalize, map } from 'rxjs/operators';
import SharedModule from 'app/shared/shared.module';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
-import { IUser } from 'app/entities/blog/user/user.model';
-import { UserService } from 'app/entities/blog/user/service/user.service';
import { IBlog } from '../blog.model';
import { BlogService } from '../service/blog.service';
import { BlogFormService, BlogFormGroup } from './blog-form.service';
+import { IUser } from '../../../user/user.model';
+import { UserService } from '../../../user/service/user.service';
@Component({
standalone: true,
@@ -27,7 +27,7 @@ export class BlogUpdateComponent implements OnInit {
protected blogService = inject(BlogService);
protected blogFormService = inject(BlogFormService);
- protected userService = inject(UserService);
+ protected userService: UserService = inject(UserService);
protected activatedRoute = inject(ActivatedRoute);
// eslint-disable-next-line @typescript-eslint/member-ordering |
As far as I can tell, it seems like <%_
Object.keys(differentRelationships).forEach(key => {
if (differentRelationships[key].some(rel => rel.persistableRelationship)) {
const uniqueRel = differentRelationships[key][0];
if (uniqueRel.otherEntityAngularName !== entityAngularName) {
_%>
import { I<%= uniqueRel.otherEntityAngularName %> } from 'app/entities/<%= uniqueRel.otherEntityPath %>/<%= uniqueRel.otherEntityFileName %>.model';
import { <%= uniqueRel.otherEntityAngularName %>Service } from 'app/entities/<%= uniqueRel.otherEntityPath %>/service/<%= uniqueRel.otherEntityFileName %>.service'; |
mraible
added
theme: angular
theme: microfrontend
and removed
area: triage
theme: undefined
labels
Mar 19, 2024
6 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the issue
Creating a microservices architecture with Angular results in a compilation error.
Motivation for or Use Case
This worked in 8.1.0.
Reproduce the error
JHipster Version(s)
main
branchThe text was updated successfully, but these errors were encountered: