Overview

I encountered an error when attempting to load a .glb file in Nuxt3 x babylon.js, so this is a memo of how I resolved it.

Error Details

The following error occurred:

Unable to load from ./models/test.glb: importScene of undefined from undefined version: undefined, exporter version: undefinedimportScene has failed JSON parse

Solution

The issue was resolved by additionally installing the following package:

npminstall@babylonjs/loaders

As a result, I was able to display the model with the following JavaScript file:

i}ic}emmo;xpESFVHSfpnesc}poncreecrosncr,orgeecmeortgeeccmmcccnS)e}rtinetinmtinFaooyyoaaec;n)tneCosemneutnnSSnmmwe""sf}gs;{e,arpL""ye:neIssccCseeLLn.tcuRicd,m3ho@@S:cSntteeatrriHoe/eenssseneee,eabbcntcinnmaageaLmsnccccnenfrrdaaenuieteseeec..hmdooteteeed.eaaiebbnuloninc..rasatiad.,icCnnner.u,cryyellneageesametsGdegooreeerurlL,lll,:linncettspLellnne...inetioo=,tinegesrTaehBrsbsaacanRngnnofzeineaacte./"ttcrcgedmhjj{ue=netrhurmA",etetneytsscn=eu=gCpiop,*miaildrS,//rcen=peocdpneovtvoe(ccletnne=ntnLeeesreeeor)eooaigewse(tilnwhCDCpL;nratoiwecwVrgdMuaeaoeedennSneeoh(e=pmfmo;"eeEcgnFcltsdeaep;rt(neiert((hsarur(shcagnn;eoc"ectala(/eanieeeralseet.)gndn(;C3ni*n=Calsveea.vg/etat=Tcas(nmZah).hnmt>Fesccgeestmeuea"n)eairr,"{elrc{;ennnao,sclah{eve((tha;OCa)")rVemros;c)ueseLn)a;ec[rit;m)t0agre;o]horr;atla3n((1.dtc"Ura,plun(ievn)g)ae,h;swt,sVcifeenacnltetso)her;e)3;(s0c,en5e,-10),scene);

Summary

I hope this helps anyone experiencing a similar error.