Analog Project's do not work in webkit based browsers.
I believe it has something to do with the Vite Angular plugin.
Unfortunately, you cannot reproduce this in a StackBlitz example so I cloned the analog repo and added my tests to the blog-app & analog-app applications, which both show the same behavior
vite-plugin-angular
Steps to reproduce:
@Component({
selector: 'analogjs-root',
standalone: true,
imports: [TopBarComponent, RouterOutlet],
template: `
<app-top-bar></app-top-bar>
Counter: {{count}}
<button (click)="increment()">Increment</button>
<div class="container">
<router-outlet></router-outlet>
</div>
`,
})
export class AppComponent {
public count = 0;
public increment(): void {
this.count++;
}
}
Expected Result
The counter increases on every click.
Actual Result
The counter does not increase.
The console shows the following error:
If you drill into the error the following is shown:
[Error] SyntaxError: Unexpected token '{'
(anonymous function) (app.component.ts:12)
I would love to submit a PR to fix this issue but I currently am lacking the knowledge where to even start investigating this issue.
Probably related to angular/[email protected]cf2f30a
Owner Name | analogjs |
Repo Name | analog |
Full Name | analogjs/analog |
Language | TypeScript |
Created Date | 2022-07-06 |
Updated Date | 2023-03-28 |
Star Count | 885 |
Watcher Count | 18 |
Fork Count | 67 |
Issue Count | 33 |
Issue Title | Created Date | Updated Date |
---|