expo init - tabs "Error: Asset not found..."


#1

Hello, I’m new to Expo.
In my Shell I’m running

expo init {project name}

and selecting “tabs”. Files are generated just fine. Now I change my Shell directory to my project and run

npm start

After the QR code shows I pick up my Android phone and load Expo, load my project. It fails. The terminal window says:

[09:44:55] Error: Asset not found: /home/chronos/user/Downloads/projects/learn/test000/assets/splash.png for platform: null
[09:44:55]     at /home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:147:13
[09:44:55]     at Generator.next (<anonymous>)
[09:44:55]     at step (/home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:326:347)
[09:44:55]     at /home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:326:507
[09:44:55]     at <anonymous>
[09:44:55] Error: Asset not found: /home/chronos/user/Downloads/projects/learn/test000/assets/icon.png for platform: null
[09:44:55]     at /home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:147:13
[09:44:55]     at Generator.next (<anonymous>)
[09:44:55]     at step (/home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:326:347)
[09:44:55]     at /home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:326:507
[09:44:55]     at <anonymous>
[09:44:58] Error: Asset not found: /home/chronos/user/Downloads/projects/learn/test000/assets/icon.png for platform: null
[09:44:58]     at /home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:147:13
[09:44:58]     at Generator.next (<anonymous>)
[09:44:58]     at step (/home/chronos/user/Downloads/projects/learn/test000/node_modules/metro/src/Assets.js:326:347)

I’ve not touched any files, shouldn’t this just run with no adjustments?

If you need information please tell me the terminal command to type, I’m pretty new to using the terminal.

(on a side not, using init and choosing blank runs just fine.)


#2

Hey @cmbarsotti,

Can you run expo diagnostics and print the log here? Also, can you try running expo start in the tabs project and see if that works?

Cheers,

Adam


closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.