How to setup a development server for mindAR? #532
Replies: 1 comment
-
|
This is a common issue when running MindAR (or any modern JavaScript project using ES modules) directly from a local file without a proper development server. The error occurs because the browser can't resolve the npm package imports (like @tensorflow/tfjs) when opening the HTML file directly via file:// protocol. Here's how to set up a proper development server: Solution 1: Use a Simple HTTP Server (Recommended)
Option B: Using Python (if you have Python installed) Then visit: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I tried to run a local server using node but was not able to get image-tracking/debug.html to run.
The error shows the following:
Uncaught TypeError: Failed to resolve module specifier "@tensorflow/tfjs". Relative references must start with either "/", "./", or "../".Understand this errorAny help would be much appreciate!
Beta Was this translation helpful? Give feedback.
All reactions