Giter Club home page Giter Club logo

vue-todos's Issues

到 3.1.7 修改router(路由) 就不能顺利的构建了

到 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)

Cannot read property 'record' of undefined

文档写的非常棒,很好,学习了,非常感谢。
下面有一个小问题:
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)

很棒

在你的文章中没有发现留言,在这里表达一下对作者的赞许之情。写得太好了,循序渐进很适合学习。希望作者能创作出更好的作品。

mock.js问题

  1. 如果是产品服务器的话, 是否需要修改源码将 mock 去掉?
  2. mock.js的引入对 webpack 打包(产品环境)有什么样的影响?
  3. 下面这样的写法有意义吗?
if (process.env.NODE_ENV === 'development') {
  const Mock = require('./mock');
  Mock.start();
}

图标问题

请问为什么图标加载不出来?完全是按照教程上所写的

id 小问题

访问localhost;8080/ 不报这个错,访问 localhost:8080/#/todo/id 报这个错
Uncaught (in promise) TypeError: Cannot read property 'id' of undefined

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.