PlutoVR / sandcastle

a friendly, powerful WebXR prototyping engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capitalized engine import breaks dynamic loading

CodeRhymesLife opened this issue · comments

I created a new SandCastle app today and wasn't able to load the default scene. It looks like engine.js is trying to load engine editor camera, but fails to find it. Lower casing the C in the import seems to fix it.

import EngineEditorCamera from "./util/Cameracontrols/engineeditorcamera";

Here's the console error:

ERROR in ./src/engine/engine.js
Module not found: Error: Can't resolve './util/Cameracontrols/engineeditorcamera' in '/home/rcjames/Apps/pyrus/platform/internal/app/web-nav/client/src/engine'
 @ ./src/engine/engine.js 5:0-74 13:14-32
 @ ./src/index.js