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

I try make project with webpack-simple, not work for me. #4

Open
vad11 opened this issue Jul 24, 2017 · 0 comments
Open

I try make project with webpack-simple, not work for me. #4

vad11 opened this issue Jul 24, 2017 · 0 comments

Comments

@vad11
Copy link

vad11 commented Jul 24, 2017

Please help me resolve this problem

I try install new project with simple version
$ npm install -g vue-cli
$ vue init webpack-simple my-project

I add script src="/dist/build.js"

index.html
`

<title>simple</title>
<script src="/dist/build.js"></script> `

and install all plagins router vuex ...

package.json

{ "name": "simple", "description": "A Vue.js project", "version": "1.0.0", "author": "", "private": true, "scripts": { "dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot", "build": "cross-env NODE_ENV=production webpack --progress --hide-modules" }, "dependencies": { "vue": "^2.2.2", "vue-router": "^2.3.0", "vuex": "^2.3.0", "vuex-router-sync": "^4.1.2" }, "devDependencies": { "babel-core": "^6.0.0", "babel-loader": "^6.0.0", "babel-preset-env": "^1.5.1", "cross-env": "^3.0.0", "css-loader": "^0.25.0", "file-loader": "^0.9.0", "vue-loader": "^12.1.0", "vue-template-compiler": "^2.3.3", "webpack": "^2.6.1", "webpack-dev-server": "^2.4.5" } }

but I resive errors

`ERROR in ./src/main.js
Module not found: Error: Can't resolve './App' in 'D:\web_develop_projects\projects\smart_gan\helpers\vuex_router\simple\src'
@ ./src/main.js 4:0-24
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

ERROR in ./src/router/index.js
Module not found: Error: Can't resolve '@/pages/CartPage' in 'D:\web_develop_projects\projects\smart_gan\helpers\vuex_router\simple\src\router'
@ ./src/router/index.js 3:0-40
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

ERROR in ./src/router/index.js
Module not found: Error: Can't resolve '@/pages/HomePage' in 'D:\web_develop_projects\projects\smart_gan\helpers\vuex_router\simple\src\router'
@ ./src/router/index.js 4:0-40
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

ERROR in ./src/router/index.js
Module not found: Error: Can't resolve '@/pages/ProductPage' in 'D:\web_develop_projects\projects\smart_gan\helpers\vuex_router\simple\src\router'
@ ./src/router/index.js 5:0-46
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

ERROR in ./src/store/cart.js
Module not found: Error: Can't resolve '@/api/shop' in 'D:\web_develop_projects\projects\smart_gan\helpers\vuex_router\simple\src\store'
@ ./src/store/cart.js 3:0-30
@ ./src/store/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

ERROR in ./src/store/products.js
Module not found: Error: Can't resolve '@/api/shop' in 'D:\web_develop_projects\projects\smart_gan\helpers\vuex_router\simple\src\store'
@ ./src/store/products.js 1:0-30
@ ./src/store/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
`

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

1 participant