question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

storybook is failing: is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.

See original GitHub issue

My storybook is failing with the upgrade.

Can someone please check below and advise?

ModuleBuildError: Module build failed (from ./node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/index.js):
Error: /../src/lib/my-lib/my-test.stories.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
    at ../node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/loader.js:60:26
    at processResult (../node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModule.js:751:19)
    at ../node_modules/@storybook/builder-webpack5/node_modules/webpack/lib/NormalModule.js:853:5
    at ../node_modules/loader-runner/lib/LoaderRunner.js:399:11
    at ../node_modules/loader-runner/lib/LoaderRunner.js:251:18
    at context.callback (../node_modules/loader-runner/lib/LoaderRunner.js:124:13)
    at ../node_modules/@angular-devkit/build-angular/node_modules/@ngtools/webpack/src/ivy/loader.js:60:17

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:44 (26 by maintainers)

github_iconTop GitHub Comments

1reaction
d43vidcommented, Feb 10, 2022

@mandarini No worries, I figured it out. The path was incorrect for my project …/**/*.stories works for me. Thanks for the help!

1reaction
dean-gcommented, Feb 2, 2022

including polyfill.ts in files worked for me!. thank you so much for helping all the way!!

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular 13.1 stories file missing from the TypeScript compilation
ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property. To Reproduce...
Read more >
is missing from the TypeScript compilation. Please make sure ...
NX + Storybook: ... is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include'...
Read more >
ts is missing from the TypeScript compilation. - Shadi Atawneh
ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
Read more >
TypeScript - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
ts is missing from the TypeScript compilation. Please make ...
[Solved]-ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property-angular.js.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found