First of all, amazing project!
The issue: when i compile my project:
angular: v21.2.2
primeng: v21.1.3
vite: 8.0.2
oxc-angular 0.0.19
macOS: Tahoe 26.3.1a
the next setting in the vite.config.js are respected:
export default defineConfig(({ mode }) => {
return {
root: 'src',
optimizeDeps: {
include: [],
exclude: [
'plotly-custom.min.js',
'primeng',
'primeng/*',
'@primeuix/themes',
],
},
.....
With these setting, my prime ng tables render fine.
when i change to oxc-angular: 0.0.20
I get the next error:
ajaxRequestInterceptor.ps.js:1 NG0303: Can't bind to 'ngIf' since it isn't a known property of 'div' (used in the 'Table' component template).
If the 'ngIf' is an Angular control flow directive, please make sure that either the 'NgIf' directive or the 'CommonModule' is a part of an @NgModule where this component is declared.
That exact same error i could prevent with the shared config above. Seems that the optimizeDeps.exclude is not respected anymore.
Some more info: PrimeNG Table component is not a standalone component.
First of all, amazing project!
The issue: when i compile my project:
angular: v21.2.2
primeng: v21.1.3
vite: 8.0.2
oxc-angular 0.0.19
macOS: Tahoe 26.3.1a
the next setting in the
vite.config.jsare respected:With these setting, my prime ng tables render fine.
when i change to oxc-angular: 0.0.20
I get the next error:
That exact same error i could prevent with the shared config above. Seems that the
optimizeDeps.excludeis not respected anymore.Some more info: PrimeNG Table component is not a standalone component.