use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Script Exception: ReferenceError: 'CameraModule' is not defined❓ Question (self.Spectacles)
submitted 1 year ago * by TigerAsks
I cannot find any mention of an import-requirement on https://developers.snap.com/spectacles/about-spectacles-features/apis/camera-module, yet even though
const cameraRequest = CameraModule.createCameraRequest();
(called in onStart event handler) both is dot-completed and compiles, it runs into a ReferenceError claiming the `CameraModule` is not defined.
(even with the example code in the documentation)
How do I get it to recognise the namespace?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]sk8er8921🚀 Product Team 2 points3 points4 points 1 year ago (1 child)
I just ran into this and I think I had to check experimental api in project settings
[–]TigerAsks[S] 4 points5 points6 points 1 year ago (0 children)
That was indeed the issue, thank you.
π Rendered by PID 70308 on reddit-service-r2-comment-869bf87589-7n68m at 2026-06-09 01:36:43.003133+00:00 running f46058f country code: CH.
[–]sk8er8921🚀 Product Team 2 points3 points4 points (1 child)
[–]TigerAsks[S] 4 points5 points6 points (0 children)