Angular build fails when deployed

Discussão em 'Angular' iniciado por Sunstrike527, Novembro 26, 2024.

  1. Sunstrike527

    Sunstrike527 Guest

    Why don't I see any local errors when using ng build? When I do ng build --configuration=qa locally I don't see any error logs, only warnings:

    [​IMG]

    But when it's deployed on Azure I see errors:

    node_modules/@angular/cli/bin/ng build --configuration=qa --output-path=...
    Application bundle generation failed. [21.677 seconds]

    ✘ [ERROR] Could not resolve "moment"

    node_modules/@angular/material-moment-adapter/fesm2022/material-moment-adapter.mjs:4:31:
    4 │ import * as _rollupMoment from 'moment';

    [ERROR] TS2307: Cannot find module '@arcgis/core/Graphic' or its corresponding type declarations. [plugin angular-compiler]

    src/app/_features/ems/services/esri-map.service.ts:3:20:
    3 │ import Graphic from '@arcgis/core/Graphic';

    Continue reading...

Compartilhe esta Página