LoginSignup
1
1

More than 5 years have passed since last update.

webpack+laravel+Typescriptでエラー

Posted at

エラー

ERROR in [at-loader] ./vendor/symfony/translation/Tests/fixtures/resources.ts:1:2
    TS1110: Type expected.

webpackでtypescriptビルドしたらエラー
どうやらsymfonyがひっかかっているよう。そんなとこのts見に行かなくていいのに。

tsconfig.jsで対象外にする

下記excludeを追記して解消

tsconfig.js
{
  "compilerOptions": {
    ...
  },
  "exclude": [
    "node_modules",
    "vendor"
  ],
}

参考
https://github.com/symfony/symfony/issues/19293

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1