初学vue前台系统创建过程问题

问题一:

第一次引入element-plus表单验证时报错: Vue3
ERROR Failed to compile with 2 errors 15:42:42

error in ./src/views/Login.vue?vue&type=script&lang=ts&setup=true

Module parse failed: Unexpected token (3:12)
File was processed with these loaders:

  • ./node_modules/vue-loader/dist/index.js
    You may need an additional loader to handle the result of these loaders.
    | import { defineComponent as _defineComponent } from ‘vue’
    | import { reactive, ref } from ‘vue’> import type { ComponentSize, FormInstance, FormRules } from ‘element-plus’
    |
    | interface RuleForm {

error in ./src/views/Login.vue?vue&type=template&id=26084dc2&ts=true

Module parse failed: Unexpected token (7:27)
File was processed with these loaders:

  • ./node_modules/vue-loader/dist/templateLoader.js
  • ./node_modules/vue-loader/dist/index.js
    You may need an additional loader to handle the result of these loaders.
    | const _hoisted_3 = /#PURE/_createElementVNode(“span”, { class: “text-gray-500” }, “-”, -1 /* HOISTED */)
    |> export function render(_ctx: any,_cache: any, p r o p s : a n y , props: any, props:any,setup: any, d a t a : a n y , data: any, data:any,options: any) {
    | const _component_el_col = _resolveComponent(“el-col”)!
    | const _component_el_input = _resolveComponent(“el-input”)!

ERROR in ./src/views/Login.vue?vue&type=script&lang=ts&setup=true (./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/views/Login.vue?vue&ty
pe=script&lang=ts&setup=true) 3:12
Module parse failed: Unexpected token (3:12)
File was processed with these loaders:

  • ./node_modules/vue-loader/dist/index.js
    You may need an additional loader to handle the result of these loaders.
    | import { defineComponent as _defineComponent } from ‘vue’
    | import { reactive, ref } from ‘vue’> import type { ComponentSize, FormInstance, FormRules } from ‘element-plus’
    |
    | interface RuleForm {
    @ ./src/views/Login.vue?vue&type=script&lang=ts&setup=true 1:0-138 1:0-138 1:139-266 1:139-266
    @ ./src/views/Login.vue 2:0-67 3:0-62 3:0-62 6:49-55
    @ ./src/router/index.js 13:19-79
    @ ./src/main.js 3:0-30 12:8-14

ERROR in ./src/views/Login.vue?vue&type=template&id=26084dc2&ts=true (./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules
/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/views/Login.vue?vue&type=template&id=26084dc2&ts=true) 7:27
Module parse failed: Unexpected token (7:27)
File was processed with these loaders:

  • ./node_modules/vue-loader/dist/templateLoader.js
  • ./node_modules/vue-loader/dist/index.js
    You may need an additional loader to handle the result of these loaders.
    | const _hoisted_3 = /#PURE/_createElementVNode(“span”, { class: “text-gray-500” }, “-”, -1 /* HOISTED */)
    |> export function render(_ctx: any,_cache: any, p r o p s : a n y , props: any, props:any,setup: any, d a t a : a n y , data: any, data:any,options: any) {
    | const _component_el_col = _resolveComponent(“el-col”)!
    | const _component_el_input = _resolveComponent(“el-input”)!
    @ ./src/views/Login.vue?vue&type=template&id=26084dc2&ts=true 1:0-204 1:0-204
    @ ./src/views/Login.vue 1:0-74 6:68-74 16:73-18:3 17:29-35 16:2-18:4
    @ ./src/router/index.js 13:19-79
    @ ./src/main.js 3:0-30 12:8-14

webpack compiled with 2 errors

解决方法:
 1:第一次创建系统,报一堆错,其实就是忘了添加依赖
 vue add typescript     添加typescript    完美解决 被自己蠢到了
 2:如果上述解决方案无效,我查了其他的一堆解决方法
     (1).typescriptd的配置是不是有问题,检查你的 tsconfig.json 文件是否包含了正确的设置
     (2)确保你的 vue-loader、typescript 和其他相关依赖项都是最新版本。
     (3)重启服务
     (4)清理和重新安装依赖项:删除 node_modules 文件夹和 package-lock.json 或 yarn.lock 文件。
     重新安装依赖项,使用 npm install 或 yarn
  • 21
    点赞
  • 20
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
仓库管理系统前台vue设计方面,首先需要考虑用户界面的友好性和易用性。通过设计各种交互界面,让用户可以轻松、直观地操作系统。界面的布局需要简洁明了,各个模块和功能的操作要符合用户的直觉习惯,提高用户的使用体验。 其次,需要考虑系统的功能性与实用性。根据仓库管理的需求,设计系统的功能模块,包括入库、出库、库存管理、盘点等,确保这些功能可以完整覆盖仓库管理的方方面面。同时,系统要具有高效性和准确性,操作过程中要有必要的提示和校验,以避免误操作或错误信息的输入,提高管理效率。 除此之外,系统还应该具备一定的信息展示和报表功能。可以通过图表等形式直观展示仓库的数据信息,让管理人员能够一目了然地了解仓库的实时情况。同时,可以根据需求生成各种报表,帮助管理人员进行数据分析和决策,提升仓库管理的智能化水平。 最后,需要考虑系统的扩展性和定制性。设计系统的架构要具备一定的灵活性,可以根据实际需求灵活修改和扩展功能。同时,还要考虑系统的定制化需求,可以根据不同仓库的特殊需求进行个性化定制,使系统更贴近用户的实际需求。 综上所述,仓库管理系统前台vue设计需要兼顾用户体验、功能实用性、信息展示与报表、扩展性和定制性等方面,以确保系统能够满足仓库管理的各项需求。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值