Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

routeConfig is not defined #21

Open
wangxiaoyao opened this issue May 16, 2017 · 3 comments
Open

routeConfig is not defined #21

wangxiaoyao opened this issue May 16, 2017 · 3 comments

Comments

@wangxiaoyao
Copy link

wangxiaoyao commented May 16, 2017

首先感谢楼主的分享:
然后我几乎是把你的路由系列的demo1 照搬下来。出现了这样的错误,
router.start()/router.map() is not a function 即所有的方法都不能用
该怎么解决,谢谢

@keepfool
Copy link
Owner

vue和vue-router的版本是多少?依赖有正常安装吗?

@wangxiaoyao
Copy link
Author

wangxiaoyao commented May 21, 2017

@keepfool 我重头开始学你在博客园的课件。
上述问题依旧没有解决。
1 我安装的是vue1.0 版本
2 我通过npm install vue-router 安装路由,但是没有显示
3 chrome依旧显示 router.map is not a function

以下是我终端信息: 万分感激!!!

router npm install vue-router
➜ router cat package.json
{
"name": "router",
"version": "1.0.0",
"description": "A Vue.js project",
"author": "王逍遥 [email protected]",
"private": true,
"scripts": {
"dev": "node build/dev-server.js",
"build": "node build/build.js",
"test": ""
},
"dependencies": {
"vue": "^1.0.21",
"babel-runtime": "^6.0.0"
},
"devDependencies": {
"babel-core": "^6.0.0",
"babel-loader": "^6.0.0",
"babel-plugin-transform-runtime": "^6.0.0",
"babel-preset-es2015": "^6.0.0",
"babel-preset-stage-2": "^6.0.0",
"babel-register": "^6.0.0",
"connect-history-api-fallback": "^1.1.0",
"css-loader": "^0.23.0",
"eventsource-polyfill": "^0.9.6",
"express": "^4.13.3",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.8.4",
"function-bind": "^1.0.2",
"html-webpack-plugin": "^2.8.1",
"http-proxy-middleware": "^0.12.0",
"json-loader": "^0.5.4",
"ora": "^0.2.0",
"shelljs": "^0.6.0",
"url-loader": "^0.5.7",
"vue-hot-reload-api": "^1.2.0",
"vue-html-loader": "^1.0.0",
"vue-loader": "^8.3.0",
"vue-style-loader": "^1.0.0",
"webpack": "^1.12.2",
"webpack-dev-middleware": "^1.4.0",
"webpack-hot-middleware": "^2.6.0",
"webpack-merge": "^0.8.3"
}
}

@wangxiaoyao
Copy link
Author

@keepfool 已经解决了 谢谢你

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants