一个高效的前后端集成框架,基于Vite、Vue、Webpack和Node.js。一键启动,开箱即用。 An efficient front-end and back-end integration framework based on Vite, Vue, Webpack, and Node.js. One click start, ready to use out of the box.
As title, when I import element-plus as in any vue3 project built with vue-cli, it crashed with errors. I wonder if there's any solution. Thanks a lot!
[nodemon] 2.0.19
[nodemon] reading config .\nodemon.json
[nodemon] to restart at any time, enter rs
[nodemon] or send SIGHUP to 6644 to restart
[nodemon] ignoring: ..git//* .\node_modules//* doc//* public//* .\test/**/*
[nodemon] watching path(s): client** app.js server**
[nodemon] watching extensions: js,json
[nodemon] starting node app.js
[nodemon] forking
[nodemon] child pid: 14344
[nodemon] watching 200 files
express-validator: requires to express-validator/check are deprecated.You should just use require("express-validator") instead.
express-validator: requires to express-validator/filter are deprecated.You should just use require("express-validator") instead.
jsonVee\server\router\index.js:55
app.use(expressValidator({}));
^
TypeError: expressValidator is not a function
at Function.interceptorHttp (jsonVee\server\router\index.js:55:17)
at Object. (jsonVee\app.js:41:12)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module`