When developing the MRTK of hololens and JavaScript, the file reported an error and the file could not be found

Rommer Luo 1 Reputation point

Referring to the official case, this file does not exist during JavaScript development.The document link is as follows:https://learn.microsoft.com/zh-cn/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/introduction-01



HoloLens Development
HoloLens Development
HoloLens: A family of Microsoft self-contained, holographic devices that enable engagement with digital content and interaction with holograms in the surrounding environment.Development: The process of researching, productizing, and refining new or existing technologies.
323 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Hernando Ren 2,166 Reputation points

    Hello, Welcome to Microsoft Q&A,

    It is a known issue and the pull request has not been merged; you can fix it by replacing this line of code right now:

    BABYLON.SceneLoader.ImportMesh("frame", "https://learn.microsoft.com/windows/mixed-reality/develop/javascript/tutorials/babylonjs-webxr-piano/files", "pianoFrame.babylon", scene, function(meshes) {


    BABYLON.SceneLoader.ImportMesh("frame", "https://raw.githubusercontent.com/MicrosoftDocs/mixed-reality/docs/mixed-reality-docs/mr-dev-docs/develop/javascript/tutorials/babylonjs-webxr-piano/files/", "pianoFrame.babylon", scene, function(meshes) {

    For more information, please refer to this commit: Fix Broken Link in WebXR Javascript Piano Tutorial #455

    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments