rafeca / metro-sample-app

Super simple web app built by metro
29 stars 8 forks source link

Build errors instead of working #2

Closed Haroenv closed 6 years ago

Haroenv commented 6 years ago

Seems to be related to the build file not being found, but I'm not sure how to debug this. I tried it both with the server running and with it not running:

yarn build
yarn run v1.3.2
$ metro build --dev=false --optimize=true src/index.js --out build/bundle.js && echo '//# sourceMappingURL=./bundle.map' >> build/bundle.js
Looking for JS files in
   /Users/haroen/git/metro-sample-app

Loading dependency graph, done.
start
finish
Writing bundle output to: build/bundle.js
Writing sourcemap output to: build/bundle.map
Error: ENOENT: no such file or directory, open 'build/bundle.js'
(node:46464) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'build/bundle.js'
(node:46464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside ofan async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:46464) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections thatare not handled will terminate the Node.js process with a non-zero exit code.
(node:46464) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'build/bundle.map'
(node:46464) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside ofan async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)