vue-for-idea icon indicating copy to clipboard operation
vue-for-idea copied to clipboard

Attribute type in script tag reports a warning (v1.0.72)

Open stoewer opened this issue 9 years ago • 6 comments

Inside a *.vue file a valid value of a type attribute in a <script> tag reports a warning - as depicted below. The warning is the same also for other values such as 'javascript' or 'foo'.

screenshot from 2016-06-17 09-36-18

stoewer avatar Jun 17 '16 07:06 stoewer

You don't need the “type” attribute. If you need to specify a language. Please use the Lang attribute in accordance with the Vue standard

springeye avatar Jun 17 '16 08:06 springeye

@henjue After added lang=“babel" attribute(and also removed the previous type='text/babel' to the script block, the IDE finally recoginze the arrow function syntax. But still I can't find out sass highlight correctly now, the previous <style lang="sass" rel="stylesheet/scss"> can't work. Where can I get the details of Vue standard? snapshot

aprilandjan avatar Jun 17 '16 16:06 aprilandjan

I will verify the problem,about *.vue looup vue-loader

springeye avatar Jun 18 '16 04:06 springeye

@aprilandjan Can only use the lang attribute

springeye avatar Jun 19 '16 03:06 springeye

@henjue yeah I use <style lang="scss"> and it works again. Thanks!

aprilandjan avatar Jun 19 '16 07:06 aprilandjan

@aprilandjan I test can normal use 1 2

springeye avatar Jun 21 '16 04:06 springeye