liangxiaojuan / vue-todos Goto Github PK
View Code? Open in Web Editor NEWvue最新实战项目教程,从零开始,一步一个脚印,循序渐进。跟着我一起学习vue吧!
Home Page: https://liangxiaojuan.github.io/todo
vue最新实战项目教程,从零开始,一步一个脚印,循序渐进。跟着我一起学习vue吧!
Home Page: https://liangxiaojuan.github.io/todo
字体图标可以再大点!
到 3.1.7 修改router(路由) 用npm run dev 就会报错了。
1.git clone 你的源码,运行npm run dev 也报错。
2.最好能在文章的开头,说一下 你的运行版本和运行环境。要不同版本会有一点差异。
运行你的源码,报错如下:
[email protected] dev D:\VsCode\vue-todos
node build/dev-server.js
module.js:559
throw err;
^
Error: Cannot find module 'chalk'
at Function.Module._resolveFilename (module.js:557:15)
at Function.Module._load (module.js:484:25)
at Module.require (module.js:606:17)
at require (internal/module.js:11:18)
at Object. (D:\VsCode\vue-todos\build\check-versions.js:1:75)
at Module._compile (module.js:662:30)
at Object.Module._extensions..js (module.js:673:10)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
最后一段代码
<template/>
=>
</template>
路径 src/components/Item.vue Item.vue 文件名第一个字符为大写
但文件 src/components/todo.vue 的64行为 import item from './item';
导致报错信息
ERROR in .//babel-loader/lib!.//vue-loader/lib/selector.js?type=script&index=0!./src/components/todo.vue
Module not found: Error: Can't resolve './item' in '/home/rango/code/vue-todos/src/components'
Readme那里的教程文档链接都失效了,这个仓库又找不到文档在哪
想学习啊
作者还在维护这个仓库吗,文档里的链接都失效了
么么哒
大神,我把您的项目clone下来,运行后,怎么是“ GET http://localhost:8080/ 404 (Not Found)”,有没有一个简版可以运行的
文档写的非常棒,很好,学习了,非常感谢。
下面有一个小问题:
app.1305534f823567d76d8d.js:1 Uncaught (in promise) TypeError: Cannot read property 'record' of undefined
at Array. (app.1305534f823567d76d8d.js:1)
at o (vendor.2f2c77d66a53508c9986.js:17)
at vendor.2f2c77d66a53508c9986.js:17
at new Promise ()
at i. (vendor.2f2c77d66a53508c9986.js:17)
at t.exports (vendor.2f2c77d66a53508c9986.js:17)
在你的文章中没有发现留言,在这里表达一下对作者的赞许之情。写得太好了,循序渐进很适合学习。希望作者能创作出更好的作品。
有2个插件不支持linux,跑不起来
Originally posted by @thoth-hank in #16 (comment)
感谢作者分享,学习了。。。。
能更新下博客文章图片链接吗?
if (process.env.NODE_ENV === 'development') {
const Mock = require('./mock');
Mock.start();
}
请问为什么图标加载不出来?完全是按照教程上所写的
访问localhost;8080/ 不报这个错,访问 localhost:8080/#/todo/id 报这个错
Uncaught (in promise) TypeError: Cannot read property 'id' of undefined
感觉挺好的,想跟着大神学一下
第四节课 路由少引入了个todo组件
麻烦 楼主看看哈,给个解释
hi,老铁:
README.md里的"组件分析"链接错了。
@liangxiaojuan 如果有意愿的话,我可以效劳,我将提交 PR,在不改变项目原本功能和构建打包的前提下,单纯将 JavaScript 改成 TypeScript,相关的 xx.js 将改成 xx.ts,xx.vue 中的 <script> 将改成 <script lang="ts">
1.教程里 https://juejin.im/post/5933a0beac502e00689e277d#heading-24
3.1.9 列表渲染少了这一行,导致整体效果失效
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.