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 |1 Answer
Reset to default -1Check 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
yarn dev
! – negin motalebi Commented Jan 29 at 8:10console.log
would cause such an error. – kissu Commented Jan 29 at 8:14