GithubHelp home page GithubHelp logo

Comments (4)

gaikwadrahul8 avatar gaikwadrahul8 commented on May 29, 2024

Hi, @lklewis83

Thank you for bringing this issue to our attention and as far I know This error arises when the browser attempts to load a source map for the TensorFlow.js library file (backend.js) from an invalid location (file:////npm). Source maps provide debugging information by mapping code in a minified file back to its original human-readable form.

Browsers typically restrict access to files on remote servers (indicated by //npm) using UNC (Universal Naming Convention) paths. This is a security measure to prevent malicious code injection.

However, you can resolve that issue by running the codelab locally (e.g. in a development environment) set up a local web server (like http-server) to serve the codelab files. This allows the browser to access the files from a valid location (e.g., http://localhost:8080/).

Run the server command in your terminal : http-server

You'll need Node.js and npm (Node Package Manager) installed on your system. You can usually download them together from the official Node.js website : https://nodejs.org/en/download after that please follow below steps :

  1. Install http-server globally by using this command npm install -g http-server
  2. Navigate to the directory containing your TensorFlow.js codelab files (e.g the directory where index.html resides) and run http-server from your terminal
  3. By default, http-server runs on port 8080. Open your web browser and navigate to: http://localhost:8080

Please try to run the codelab example locally with above steps and see is it working as expected or not ?

If issue still persists please let us know with error log to investigate this issue further.

Thank you for your understanding and patience.

from tfjs.

gaikwadrahul8 avatar gaikwadrahul8 commented on May 29, 2024

Hi, @lklewis83

To confirm, were you able to successfully run codelab example by following the provided instructions and workaround with local development environment? if so please feel free to close this issue.

If you're still encountering problems, please provide us with a new error log after attempting the instructions and workaround. This will help us investigate the issue further on our end.

Thank you for your cooperation and patience in resolving this matter.

from tfjs.

gaikwadrahul8 avatar gaikwadrahul8 commented on May 29, 2024

Hi, @lklewis83

We haven't got confirmation from your end so now I'm closing this issue, if you need any further assistance on this issue please feel free to post your comments so we'll re-open this issue once again to help you further and if you need any help on new issue please feel free to create new issue and we will happy to help you further.

Thank you for your cooperation and patience.

from tfjs.

google-ml-butler avatar google-ml-butler commented on May 29, 2024

Are you satisfied with the resolution of your issue?
Yes
No

from tfjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.