Skip to content

Vue declaration files endings -- .vue.d.ts vs. .d.ts #224

Closed
@m4rvr

Description

@m4rvr

What happens and why it is wrong

Building works fine but the generated declaration file from a SFC for example MyComponent.vue is named as MyComponent.vue.d.ts which breaks my imports (also generates like that without importing another SFC).

Renaming the file to MyComponent.d.ts works and the errors are gone.

Environment

I'm using this plugin together with rollup-plugin-vue and rollup-plugin-babel. I also have @rollup/plugin-commonjs & @rollup/plugin-node-resolve if that does matter.

Could that be a configuration problem with my tsconfig.json? I will try to add the configs if needed.

Versions

  • typescript: 3.8.3
  • rollup: 2.3.2
  • rollup-plugin-typescript2: 0.27.0

Metadata

Metadata

Assignees

Labels

kind: discussionDiscussion on changes to makekind: supportAsking for support with something or a specific use caseproblem: removed issue templateOP removed the issue template without good causescope: integrationRelated to an integration, not necessarily to core (but could influence core)scope: vueRelated to integration with Vue (rollup-plugin-vue is long archived), not coresolution: Vue behaviorThis is Vue's behavior as well, so this is not a bug with this pluginsolution: invalidThis doesn't seem rightsolution: revertedThis change was reverted after being determined to contain a regression

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy