keenthemes / metronic-tailwind-html-integration

Metronic Tailwind CSS Integration Guides
MIT License
37 stars 32 forks source link

Tailwind CSS Angular #2

Closed alasad311 closed 4 months ago

alasad311 commented 4 months ago

Hey all,

After following the steps in

https://keenthemes.com/metronic/tailwind/docs/getting-started/integration/frontend/angular

Ive encountered an error as below;

(node:22384) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use node --trace-warnings ... to show where the warning was created) Application bundle generation failed. [9.921 seconds]

X [ERROR] TS2612: Property '_config' will overwrite the base property in 'KTComponent'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration. [plugin angular-compiler]

src/metronic/core/components/datatable/datatable.ts:20:20:
  20 │   protected override _config: KTDataTableConfigInterface;
     ╵                      ~~~~~~~

X [ERROR] TS2612: Property '_defaultConfig' will overwrite the base property in 'KTComponent'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration. [plugin angular-compiler]

src/metronic/core/components/datatable/datatable.ts:21:20:
  21 │   protected override _defaultConfig: KTDataTableConfigInterface;
alasad311 commented 4 months ago

ive resolved it which is weird i had to go to

src/metronic/core/components/datatable/datatable.ts

There i had to add override for both

    declare protected _config: KTDataTableConfigInterface;
    declare protected _defaultConfig: KTDataTableConfigInterface;

save then remove override from both which then the issue gets resolved.

However, now im trying to get the SSR to work as im getting an error