Storybook not working ionic angular ERROR in ./src/polyfills.ts

Discussão em 'Angular' iniciado por Xero, Fevereiro 19, 2025.

  1. Xero

    Xero Guest

    On ionic angular, storybook display a message error :

    ERROR in ./src/polyfills.ts
    Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
    Error: C:\Users\foo\workspaces\tmp\photo-gallery\src\polyfills.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at C:\Users\foo\workspaces\tmp\photo-gallery\node_modules\@ngtools\webpack\src\ivy\loader.js:75:26


    [​IMG]

    For reproduct the error :

    npm install -g @ionic/cli native-run cordova-res
    ionic start photo-gallery tabs --type=angular --capacitor
    npx storybook@latest init


    Remark : I tried with standalone components

    I think this is related to ionic/angular, because I tried with only angular, and it's working well.

    Continue reading...

Compartilhe esta Página