ykloveyxk / vue-login Goto Github PK
View Code? Open in Web Editor NEWThis is a login program based on vuejs and axios,for beginners
License: Apache License 2.0
This is a login program based on vuejs and axios,for beginners
License: Apache License 2.0
是不是要把前后台的环境都搭建好才可以啊,还是怎么说?错误同2楼
报 login.vue 这个文件错误
第一个问题
npm run build --report 运行后
ERROR in static/js/0.8d18fe144f17fc217b92.js from UglifyJs
Unexpected token punc «(», expected punc «:» [static/js/0.8d18fe144f17fc217b92.js:45,8]
报了几个这样的错误
是ES6缺少babel的原因吗
第二个问题
node server.js运行后
显示
Server running in port 3000
Mongodb started successfully
但是打开http://127.0.0.1:3000/
显示Error: This page not found
是第一个原因的问题引起的吗
component(resolve) { require.ensure(['@/components/Login.vue'], () => { resolve(require('@/components/Login.vue')); }); }
类似的这种把组件独立打包的时候需要加第一个参数(组件的依赖项)吗,有点迷惑。因为代码中的依赖项就是它本身 所以不知道为什么还需要
ERROR Failed to compile with 1 errors 18:55:12
This dependency was not found:
上面是编译出错信息,发现component 下面404.Vue 文件 字母V 大写了,导致的。
我将你的项目clone到本地 安装了依赖 因为本地之前没有mongodb 我又安装了mongodb 并开启 node server.js 显示了已经连接上了 但是run dev 页面仍然显示cannot Get 是什么原因?
node server时候报错,本地package.json显示mongoose是4.8.4;
查询后得知,mongoose.connection.on("open")这种方式废弃了,建议修改为mongoose.connection.openUri(config.mongodb)
npm run dev没问题
表单渲染没问题。
在注册表单内填入内容,提交时console显示以下内容
[HPM] Error occurred while trying to proxy request /api/register from localhost:8080 to http://localhost:3000(ECONNRESET) (https://nodejs.org/api/errors.html#errors_common_system_errors)
然后我发现是后台忘记运行了。哈哈。
你好,我的前面npm run dev 没有出错,与数据库也链接成功,但是在启动node server.js事报了This page not found ,请问这是什么原因
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.