Skip to content

4.1.0 breaks tsx support #4892

Closed
Closed
@johannes-z

Description

@johannes-z

Version

4.1.0

Reproduction link

https://github.com/johannes-z/vuecli-tsx-repro

Environment info

  System:
    OS: Windows 10 10.0.18362
    CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
  Binaries:
    Node: 10.15.3 - ...\nodejs\node.EXE     
    Yarn: 1.19.1 - ...\bin\yarn.CMD
    npm: 6.4.1 - ...\nodejs\npm.CMD
  Browsers:
    Edge: 44.18362.449.0
  npmPackages:
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0
    @vue/babel-plugin-transform-vue-jsx:  1.1.2
    @vue/babel-preset-app:  4.1.0
    @vue/babel-preset-jsx:  1.1.2
    @vue/babel-sugar-functional-vue:  1.1.2
    @vue/babel-sugar-inject-h:  1.1.2
    @vue/babel-sugar-v-model:  1.1.2
    @vue/babel-sugar-v-on:  1.1.2
    @vue/cli-overlay:  4.1.0
    @vue/cli-plugin-babel: ^4.1.0 => 4.1.0
    @vue/cli-plugin-eslint: ^4.1.0 => 4.1.0
    @vue/cli-plugin-router:  4.1.0
    @vue/cli-plugin-typescript: ^4.1.0 => 4.1.0
    @vue/cli-plugin-vuex:  4.1.0
    @vue/cli-service: ^4.1.0 => 4.1.0
    @vue/cli-shared-utils:  4.1.0
    @vue/component-compiler-utils:  3.0.2
    @vue/eslint-config-standard: ^4.0.0 => 4.0.0
    @vue/eslint-config-typescript: ^4.0.0 => 4.0.0
    @vue/preload-webpack-plugin:  1.1.1
    @vue/web-component-wrapper:  1.2.0
    eslint-plugin-vue: ^5.0.0 => 5.2.3
    portal-vue:  2.1.6
    typescript: ~3.5.3 => 3.5.3
    vue: ^2.6.10 => 2.6.10
    vue-class-component: ^7.1.0 => 7.1.0
    vue-eslint-parser:  5.0.0
    vue-hot-reload-api:  2.3.4
    vue-loader:  15.7.2
    vue-property-decorator: ^8.3.0 => 8.3.0
    vue-style-loader:  4.1.2
    vue-template-compiler: ^2.6.10 => 2.6.10
    vue-template-es2015-compiler:  1.9.1
  npmGlobalPackages:
    @vue/cli: Not Found

Steps to reproduce

yarn / npm i
yarn serve / npm run serve

What is expected?

Successful build

What is actually happening?

error  in ./src/components/HelloWorld.vue?vue&type=script&lang=tsx&

Module build failed (from ./node_modules/ts-loader/index.js):
Error: TypeScript emitted no output for ...\vue-tsx-test\src\components\HelloWorld.vue.tsx.

If you downgrade the @vue/ packages to 4.0.0, the build works again.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions