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

user pages but got an error info?t= 404 not found and I fix it #1403

Closed
CXY037 opened this issue May 30, 2018 · 8 comments
Closed

user pages but got an error info?t= 404 not found and I fix it #1403

CXY037 opened this issue May 30, 2018 · 8 comments

Comments

@CXY037
Copy link

CXY037 commented May 30, 2018

Version

3.0.0-beta.13

Reproduction link

https://github.com/CXY037/vue-cli-pages-bug

Steps to reproduce

vue.config.js 's pages
const pages = {}
glob.sync('./src/pages/**/app.js').forEach(path => {
const chunk = path.split('./src/pages/')[1].split('/app.js')[0]
const page = {}
page.entry = path
page.template = resolve(path.replace(/app.js/g, 'app.html'))
// page.filename = ${chunk}.html
pages[chunk] = page
})

What is expected?

pages normal

What is actually happening?

dub dir page got
http://localhost:8081/sockjs-node/info?t=1527653005031
404 not found

@CXY037
Copy link
Author

CXY037 commented May 30, 2018

the fixed method is
modify
@vue/cli-service/lib/commands/server.js
change require.resolve(webpack-dev-server/client),
to require.resolve('webpack-dev-server/client') + '?http://localhost:8081',

@CXY037
Copy link
Author

CXY037 commented May 30, 2018

the ref url is : webpack/webpack-dev-server#704 (comment)

@LinusBorg
Copy link
Member

vue-cli 3 doesn'thave a pages option so I have no idea what this is about?

@Akryum
Copy link
Member

Akryum commented May 30, 2018

@LinusBorg Yes it has: 869f005

@LinusBorg
Copy link
Member

Oh. Then our docs are out of sync :-P

@CXY037
Copy link
Author

CXY037 commented May 30, 2018

@LinusBorg I read the code and find the multipages-app support hah

@CXY037
Copy link
Author

CXY037 commented May 30, 2018

@Akryum you can modify the code and it's working fine

@yyx990803
Copy link
Member

This is fixed by #1405

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

4 participants