LoginSignup
1
0

More than 3 years have passed since last update.

vuex-module-decoratorsでのdecorator関連のエラー

Posted at

vuex-module-decoratorsを使ったNuxtとtypeScriptのプロジェクトで、
VSCodeで下記のようなエラーが出ました。

Experimental support for decorators is a feature 
that is subject to change in a future release.
(略)

調べてみると、下記の対応でスッとエラーが表示されなくなりました。

In VSCode, Go to File => Preferences => Settings (or Control+comma) and it will open the User Settings file. Add "javascript.implicitProjectConfig.experimentalDecorators": true to the file and it should fix it. It did for me.

勉強不足でしたが、javascriptでも将来的にdecoratorが採用される可能性が割とあるのですね〜。
なので、vuex-module-decorators使ってるからとかではなく、decoratorを使っていて、まだ正式には対応できてないですよ〜それを許可しますか〜みたいなお話だったんですね。

1
0
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
0