Unhandled promise rejection: Expected URL scheme 'http' or 'https' but was 'file'

You actually hit a security constraint. Loading from file is not supported. More information in the following guide: three.js docs

The common solution for this issue is to host your app (and media content) on local web server and refer with HTTP(S) to your assets.

2 Likes