Skip to content
This repository has been archived by the owner on Jan 11, 2020. It is now read-only.

插件很好用,es6 ()=>{} #61

Open
wuchuguang opened this issue Aug 26, 2016 · 10 comments
Open

插件很好用,es6 ()=>{} #61

wuchuguang opened this issue Aug 26, 2016 · 10 comments

Comments

@wuchuguang
Copy link

可惜 script lang="babel" 后,有时*.vue里写()=>{} 或then(()=>{}).catch(()=>{})
时还会报语法错误,然后ctrl + i 格式代码结构就会乱了.我用的是phpstorm 2016.2.1版本.

@wuchuguang
Copy link
Author

image

@wuchuguang
Copy link
Author

代码是可以运行的.这里没有语法错误的.

@languanghao
Copy link

languanghao commented Sep 2, 2016

Try <script lang='es6' type='text/babel'>

@wuchuguang
Copy link
Author

try <script lang="babel"> Invalid

@wuchuguang
Copy link
Author

<script lang="babel"> Invalid not effect

@languanghao
Copy link

@wuchuguang <script lang='es6' type='text/babel'> not <script lang="babel">

@wuchuguang
Copy link
Author

@languanghao vue-cli environment

<script lang="es6" type='text/babel'> npm run dev report: Module not found: Error: Cannot resolve module 'es6'

@wuchuguang
Copy link
Author

<script lang="es6" type='text/babel'>
npm run dev
report :   Module not found: Error: Cannot resolve module 'es6' in

@wuchuguang
Copy link
Author

qq 20160927162834
本来好好的.我在这个方法里随便一个地方输入 "\"(误操作)这个反xie杠,就出现截图问题.

@wuchuguang
Copy link
Author

同事说,要很久之后才正常.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants