weixin_58831455 2022-05-09 19:33 采纳率: 50%
浏览 106
已结题

vue.js用户登录注册案例问题

cnpm run dev 运行出错
PS C:\Users\今日最佳\Desktop\1> cnpm run dev

> js@1.0.0 dev C:\Users\今日最佳\Desktop\1
> webpack-dev-server --inline --hot --port 8088

i 「wds」: Project is running at http://localhost:8088/
i 「wds」: webpack output is served from /
i 「wds」: Content not from webpack is served from C:\Users\今日最佳\Desktop\1
× 「wdm」: Hash: 4fc1bd747dfc09c1d558
Version: webpack 4.46.0
Time: 1066ms
Built at: 2022-05-09 19:22:49
     Asset       Size  Chunks             Chunk Names
 bundle.js   1.02 MiB    main  [emitted]  main
index.html  344 bytes          [emitted]
Entrypoint main = bundle.js
[0] multi ./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client?http://localhost:8088 (webpack)/hot/dev-server.js ./main.js 52 bytes {main} [built]
[./App.vue] 1.11 KiB {main} [built]
[./lib/mui/css/mui.css] 1.07 KiB {main} [built]
[./main.js] 242 bytes {main} [built]
[./node_modules/_strip-ansi@3.0.1@strip-ansi/index.js] 161 bytes {main} [built]
[./node_modules/_vue-router@3.1.6@vue-router/dist/vue-router.esm.js] 73.4 KiB {main} [built]     
[./node_modules/_vue@2.6.14@vue/dist/vue.js] 336 KiB {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/index.js?http://localhost:8088] ./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client?http://localhost:8088 4.29 KiB {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/overlay.js] 3.51 KiB {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/socket.js] 1.53 KiB {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/utils/createSocketUrl.js] 2.89 KiB {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/utils/log.js] 964 bytes {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/utils/reloadApp.js] 1.59 KiB {main} [built]
[./node_modules/_webpack-dev-server@3.8.2@webpack-dev-server/client/utils/sendMessage.js] 402 bytes {main} [built]
[./node_modules/_webpack@4.46.0@webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {main} [built]
    + 56 hidden modules

WARNING in ./App.vue?vue&type=template&id=472cff63&scoped=true& (./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./App.vue?vue&type=template&id=472cff63&scoped=true&)
Module Warning (from ./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error) Failed to prettify component C:\Users\今日最佳\Desktop\1\App.vue template source after compilation.
 @ ./App.vue?vue&type=template&id=472cff63&scoped=true& 1:0-243 1:0-243
 @ ./App.vue
 @ ./main.js

WARNING in ./components/Register.vue?vue&type=template&id=44126d7e&scoped=true& (./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./components/Register.vue?vue&type=template&id=44126d7e&scoped=true&)
Module Warning (from ./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error) Failed to prettify component C:\Users\今日最佳\Desktop\1\components\Register.vue template source after compilation.
 @ ./components/Register.vue?vue&type=template&id=44126d7e&scoped=true& 1:0-250 1:0-250
 @ ./components/Register.vue
 @ ./router.js
 @ ./main.js

ERROR in ./components/Login.vue?vue&type=template&id=c27482c4&scoped=true& (./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_vue-loader@15.7.2@vue-loader/lib??vue-loader-options!./components/Login.vue?vue&type=template&id=c27482c4&scoped=true&)
Module Error (from ./node_modules/_vue-loader@15.7.2@vue-loader/lib/loaders/templateLoader.js):  
(Emitted value instead of an instance of Error) 

  Errors compiling template:

  tag <div> has no matching end tag.

  1  |  
  2  |  <div class="login">
  3  |      <div class="content">
     |      ^^^^^^^^^^^^^^^^^^^^^
  4  |          <form class="mui-input-group login-form">
  5  |              <div class="mui-input-row">

  tag <div> has no matching end tag.

  1  |  
     |   
  2  |  <div class="login">
     |  ^^^^^^^^^^^^^^^^^^^
  3  |      <div class="content">

 @ ./components/Login.vue?vue&type=template&id=c27482c4&scoped=true& 1:0-247 1:0-247
 @ ./components/Login.vue
 @ ./router.js
 @ ./main.js

ERROR in ./lib/mui/css/mui.css (./node_modules/_css-loader@3.2.1@css-loader/dist/cjs.js!./lib/mui/css/mui.css)
Module not found: Error: Can't resolve 'url-loader' in 'C:\Users\今日最佳\Desktop\1'
 @ ./lib/mui/css/mui.css (./node_modules/_css-loader@3.2.1@css-loader/dist/cjs.js!./lib/mui/css/mui.css) 4:38-65
 @ ./lib/mui/css/mui.css
 @ ./main.js
    [./node_modules/_html-webpack-plugin@3.2.0@html-webpack-plugin/lib/loader.js!./index.html] 519 bytes {0} [built]
    [./node_modules/_lodash@4.17.21@lodash/lodash.js] 531 KiB {0} [built]
    [./node_modules/_webpack@4.46.0@webpack/buildin/global.js] (webpack)/buildin/global.js 472 bytes {0} [built]
    [./node_modules/_webpack@4.46.0@webpack/buildin/module.js] (webpack)/buildin/module.js 497 bytes {0} [built]
i 「wdm」: Failed to compile.
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\DumpStack.log.tmp'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\pagefile.sys'
Error from chokidar (C:\): Error: EBUSY: resource busy or locked, lstat 'C:\swapfile.sys'

  • 写回答

1条回答 默认 最新

  • Heerey525 前端领域新星创作者 2022-05-09 21:39
    关注

    components/Login.vue 这个登录组件

    这个div元素没有闭合,在对应位置添加

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

问题事件

  • 系统已结题 5月17日
  • 已采纳回答 5月9日
  • 创建了问题 5月9日

悬赏问题

  • ¥15 BP神经网络控制倒立摆
  • ¥20 要这个数学建模编程的代码 并且能完整允许出来结果 完整的过程和数据的结果
  • ¥15 html5+css和javascript有人可以帮吗?图片要怎么插入代码里面啊
  • ¥30 Unity接入微信SDK 无法开启摄像头
  • ¥20 有偿 写代码 要用特定的软件anaconda 里的jvpyter 用python3写
  • ¥20 cad图纸,chx-3六轴码垛机器人
  • ¥15 移动摄像头专网需要解vlan
  • ¥20 access多表提取相同字段数据并合并
  • ¥20 基于MSP430f5529的MPU6050驱动,求出欧拉角
  • ¥20 Java-Oj-桌布的计算