手动创建组件报错 experimentalDecorators

问题

手动创建组件,报错: Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.ts(1219)

解决

VSCode 左下角的“设置”,Settings,搜索“experimentalDecorators”,勾选。
手动创建组件报错 experimentalDecorators
手动创建组件报错 experimentalDecorators