Skip to content

Files written with lang='tsx' doesn't work #370

Closed
@Yama-Tomo

Description

@Yama-Tomo

Files written with lang='tsx' doesn't work since updated to 1.0.0 (and ts-loader updated to 7.0.5)

screenshots

I checked, and ts-loader was working until 6.2.2

According to the ts-loader document,

Or if you want to use only tsx, just use the appendTsxSuffixTo option only:

I found a workaround to disable appendTsSuffixTo

// nuxt.config.ts

export default {
  modules: [
    [
      '@nuxt/typescript-build',
      {
        loaders: {
          ts: { appendTsSuffixTo: [] },
        },
      },
    ],
    ..snip..
  ],
  ..snip..
}

Is there any other way?

Metadata

Metadata

Assignees

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