# Import inferencejs to perform inference on images on local server

**URL:** https://discuss.roboflow.com/t/import-inferencejs-to-perform-inference-on-images-on-local-server/7781
**Category:** 🤝  Community Help
**Tags:** bugs
**Created:** [November 23, 2024, 7:25pm UTC](https://discuss.roboflow.com/t/import-inferencejs-to-perform-inference-on-images-on-local-server/7781 "2024-11-23T19:25:15Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![JasonNg231](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/jasonng231/32/3095_2.png) [@JasonNg231](https://discuss.roboflow.com/u/JasonNg231)
#### Post date: [November 23, 2024, 7:25pm UTC](https://discuss.roboflow.com/t/import-inferencejs-to-perform-inference-on-images-on-local-server/7781/1 "2024-11-23T19:25:15Z")

</div>

Hello. I am working on creating a website for editing images and the part I’m having trouble is performing instance segmentation on the image. I tried to follow the guidance from this website: [Web Browser | Roboflow Docs](https://docs.roboflow.com/deploy/sdks/web-browser).  
However, when I implement it, this error pops up: Uncaught TypeError: The specifier “inferencejs” was a bare specifier, but was not remapped to anything. Relative module specifiers must start with “./”, “…/” or “/”.  
the source map i added from the website is also giving an error: Source map error: Error: URL constructor: is not a valid URL.  
Resource URL: wasm:[https://cdn.jsdelivr.net/npm/inferencejs%20line%2088%20\>%20WebAssembly.Module](https://cdn.jsdelivr.net/npm/inferencejs%20line%2088%20%3E%20WebAssembly.Module)  
Source Map URL: null

Project Type: Instance segmentation  
Operating System & Browser: Windows, Chrome, Firefox

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)
#### Post date: [December 14, 2024, 7:25pm UTC](https://discuss.roboflow.com/t/import-inferencejs-to-perform-inference-on-images-on-local-server/7781/2 "2024-12-14T19:25:54Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
