vuejs3 - How to fix Whitespace was expected error? - Stack Overflow

The problem is so simple but how to fix is my difficulty! When I try to run my project using yarn dev I

The problem is so simple but how to fix is my difficulty! When I try to run my project using yarn dev I get the error with the below text:

 ERROR  Whitespace was expected.

And there is no path to where should I fix this problem. Can you guide me where to find it?

The problem is so simple but how to fix is my difficulty! When I try to run my project using yarn dev I get the error with the below text:

 ERROR  Whitespace was expected.

And there is no path to where should I fix this problem. Can you guide me where to find it?

Share Improve this question edited Jan 29 at 7:29 DarkBee 15.5k8 gold badges72 silver badges118 bronze badges asked Jan 29 at 7:27 negin motalebinegin motalebi 3933 silver badges18 bronze badges 3
  • Which file and line are throwing that error? – kissu Commented Jan 29 at 8:05
  • @kissu The problem is console wouldn't log the file address and just showed me when I ran the project in development using yarn dev! – negin motalebi Commented Jan 29 at 8:10
  • Not sure how we can help with just that info, but you should probably start to comment out things so that we could narrow it down. No reason that a console.log would cause such an error. – kissu Commented Jan 29 at 8:14
Add a comment  | 

1 Answer 1

Reset to default -1

Check Template Tags, Ensure there are no malformed tags in the template:

<template>
 <div>
  <p>Hello</p>
 </div>
</template>

Incorrect example:

<template>
 <div><p>Hello</p></div>
</template>

Adding extra space between elements can help:

<div> <p>Hello</p> </div>

Ensure proper spacing around attributes:

<input type="text" />

incorrect can be like:

<inputtype="text"/>

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745307062a4621774.html

相关推荐

  • vuejs3 - How to fix Whitespace was expected error? - Stack Overflow

    The problem is so simple but how to fix is my difficulty! When I try to run my project using yarn dev I

    6小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信