Skip to content

show nothing but white window.console:"Failed to load resource" #825

Closed
@Steve720zhang

Description

I failed by run 'npm run dev'.showing white empty window.
os:osx,
qq20170317-0 2x
I've done according to #400 #453 but can't resolve this problem.
when i press command+R to refresh. The console changed log:
image

the log after 'npm run dev' as:
`npm run dev

electron-react-boilerplate@0.10.0 dev /Users/zhangzequn/work/electron-react-boilerplate-master
cross-env START_HOT=1 npm run hot-server

electron-react-boilerplate@0.10.0 hot-server /Users/zhangzequn/work/electron-react-boilerplate-master
cross-env NODE_ENV=development node -r babel-register ./node_modules/webpack-dev-server/bin/webpack-dev-server --config ./webpack.config.development.js

Project is running at http://localhost:3000/webpack-dev-server/
webpack output is served from http://localhost:3000/dist
Content not from webpack is served from /Users/zhangzequn/work/electron-react-boilerplate-master/dist
404s will fallback to /index.html

electron-react-boilerplate@0.10.0 start-hot /Users/zhangzequn/work/electron-react-boilerplate-master
cross-env HOT=1 NODE_ENV=development electron -r babel-register -r babel-polyfill ./app/main.development

/Library/Caches/com.apple.xbs/Sources/AppleGVA/AppleGVA-10.0.41/Sources/Slices/Driver/AVD_loader.cpp: failed to get a service for display 3
2017-03-17 12:22:57.647 Electron Helper[19334:10853632] Couldn't set selectedTextBackgroundColor from default ()
Hash: 58d53e2c2029b279fec2
Version: webpack 2.2.1
Time: 8862ms
Asset Size Chunks Chunk Names
674f50d287a8c48dc19ba404d20fe713.eot 166 kB [emitted]
fee66e712a8a08eef5805a46892932ad.woff 98 kB [emitted]
af7ae505a9eed503f8b8e6982036873e.woff2 77.2 kB [emitted]
b06871f281fee6b241d60582ae9369b9.ttf 166 kB [emitted]
912ec66d7572ff821749319396470bde.svg 444 kB [emitted] [big]
bundle.js 5.22 MB 0 [emitted] [big] main
chunk {0} bundle.js (main) 1.85 MB [entry] [rendered]
[./app/app.global.css] ./app/app.global.css 944 bytes {0} [built]
[./app/containers/Root.js] ./app/containers/Root.js 1.54 kB {0} [built]
[./app/index.js] ./app/index.js 1.73 kB {0} [built]
[./node_modules/react-dom/index.js] .//react-dom/index.js 59 bytes {0} [built]
[./node_modules/react-hot-loader/index.js] ./
/react-hot-loader/index.js 41 bytes {0} [built]
[./node_modules/react-hot-loader/lib/patch.js] .//react-hot-loader/lib/patch.js 209 bytes {0} [built]
[./node_modules/react-hot-loader/patch.js] ./
/react-hot-loader/patch.js 41 bytes {0} [built]
[./node_modules/react-router-redux/lib/index.js] .//react-router-redux/lib/index.js 1.97 kB {0} [built]
[./node_modules/react-router/es/index.js] ./
/react-router/es/index.js 1.46 kB {0} [built]
[./node_modules/react/react.js] .//react/react.js 56 bytes {0} [built]
[./node_modules/strip-ansi/index.js] ./
/strip-ansi/index.js 161 bytes {0} [built]
[./node_modules/webpack-dev-server/client/index.js?http:/localhost:3000] (webpack)-dev-server/client?http://localhost:3000/ 5.44 kB {0} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.6 kB {0} [built]
[11] multi react-hot-loader/patch webpack-dev-server/client?http://localhost:3000/ webpack/hot/only-dev-server ./app/index.js 64 bytes {0} [built]
[./node_modules/webpack/hot/only-dev-server.js] (webpack)/hot/only-dev-server.js 2.29 kB {0} [built]
+ 577 hidden modules
webpack: Compiled successfully.
`

Thanks a lot.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions