donmccurdy / aframe-inspector-plugin-recast

A-Frame Inspector plugin for creating navigation meshes.
MIT License
64 stars 14 forks source link

Cannot export navmesh. #41

Open na-stewart opened 2 years ago

na-stewart commented 2 years ago

Recently, I cannot export the navmesh in the inspector. Strangely I have changed nothing since last working on my project but suddently I keep getting the error below which is preventing me from exporting my build navmesh. Everything was working as desired a few days ago until now. This error occurs every time I press the export button.

aframe-inspector.min.js:25 Uncaught TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at C (aframe-inspector.min.js:25:175584)
    at k (aframe-inspector.min.js:25:178934)
    at S (aframe-inspector.min.js:25:179479)
    at A (aframe-inspector.min.js:25:179632)
    at aframe-inspector.min.js:25:180130
    at THREE.GLTFExporter.parse (aframe-inspector.min.js:25:180232)
    at RecastPlugin.exportGLTF (aframe-inspector-plugin-recast.js:9046:14)
    at HTMLButtonElement.<anonymous> (aframe-inspector-plugin-recast.js:8881:54)
<!doctype html>
<html>
    <head>
        <script src="https://aframe.io/releases/0.8.2/aframe.min.js"></script>
        <script src="https://cdn.jsdelivr.net/gh/donmccurdy/aframe-extras@v6.1.1/dist/aframe-extras.min.js"></script>
        <script src="https://recast-api.donmccurdy.com/aframe-inspector-plugin-recast.js"></script>
        <script src="https://rawgit.com/fernandojsg/aframe-teleport-controls/master/dist/aframe-teleport-controls.min.js"></script>
    </head>

    <body>
        <a-scene background="color: #FFFFFF" inspector-plugin-recast>
        </a-scene>
    </body>
</html>

Assistance would be appreciated thanks.

donmccurdy commented 1 year ago

Hi @sunset-developer — see https://github.com/donmccurdy/aframe-inspector-plugin-recast/pull/47. Unfortunately the dependencies of this project are pretty old, and the lack of a stable and documented Recast WASM build has become a big obstacle. I'm no longer able to keep this project working locally. 😞