We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
XMLHttpRequest cannot load http://localhost:8081/01262bb4bd96c4ad0a55.hot-update.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.6.149:8081' is therefore not allowed access. pagename1.bundle.js:1 [HMR] Update check failed: Error: Manifest request to http://localhost:8081/01262bb4bd96c4ad0a55.hot-update.json timed out. at XMLHttpRequest.n.onreadystatechange (http://192.168.6.149:8081/js/pagename1.bundle.js:1:578)
The text was updated successfully, but these errors were encountered:
@KaiseerZ 请使用 “localhost” 而不是 “IP地址“ 来访问。 另外,也可以自行更改 webpack.config.js 里的 publicPath 实现。
webpack.config.js
publicPath
Sorry, something went wrong.
嗯嗯,两者一致就可以了,谢谢
No branches or pull requests
XMLHttpRequest cannot load http://localhost:8081/01262bb4bd96c4ad0a55.hot-update.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.6.149:8081' is therefore not allowed access.
pagename1.bundle.js:1 [HMR] Update check failed: Error: Manifest request to http://localhost:8081/01262bb4bd96c4ad0a55.hot-update.json timed out.
at XMLHttpRequest.n.onreadystatechange (http://192.168.6.149:8081/js/pagename1.bundle.js:1:578)
The text was updated successfully, but these errors were encountered: