Skip to content

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

@ViliamKopecky

Description

@ViliamKopecky

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions