Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gatsby-plugin-typescript should ignore .d.ts files in pages dir #3050

Closed
ViliamKopecky opened this issue Nov 28, 2017 · 1 comment
Closed

Comments

@ViliamKopecky
Copy link
Contributor

Having types declaration file in src/pages causes error, because Gatsby tries to build it to html. It should be ignored for creating pages.

 error  in ./src/pages/styleguide/image.module.sass.d.ts

Module build failed: Error: Debug Failure. False expression: Output generation failed
    at Object.transpileModule (/Users/vk/www/project/node_modules/typescript/lib/typescript.js:84062:18)
    at getTranspilationEmit (/Users/vk/www/project/node_modules/ts-loader/dist/index.js:173:32)
    at successLoader (/Users/vk/www/project/node_modules/ts-loader/dist/index.js:41:11)
    at Object.loader (/Users/vk/www/project/node_modules/ts-loader/dist/index.js:29:12)

 @ ./.cache/sync-requires.js 25:75-150
@KyleAMathews
Copy link
Contributor

This was referenced Jan 12, 2022
This was referenced Feb 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants