Giter VIP home page Giter VIP logo

Comments (6)

joeyklee avatar joeyklee commented on May 26, 2024

Ah - need to run yarn start for developing rather than npm run start - closing issue!

from ml5-website.

joeyklee avatar joeyklee commented on May 26, 2024

Reopening this issue as it is persisting when changing images on the home page - specifically the Team section.

NOTE: need to document:

  1. where images need to be placed in the project scaffold - is it public or static?
  2. how to specify the path to the images.

from ml5-website.

joeyklee avatar joeyklee commented on May 26, 2024

Ah-ha! I see this noted here: https://github.com/ml5js/ml5-website-2#assets

Apologies for missing this in the docs!

from ml5-website.

wenqili avatar wenqili commented on May 26, 2024

This issue usually means that the embed URL to images is not right.
NPM start should work. Still the same error after correct the URL?

from ml5-website.

joeyklee avatar joeyklee commented on May 26, 2024

@wenqili - All good now! I just needed to place the images in the correct directory:

~/ml5-website-2/docs/assets/

  • I haven't tested yet with an external URL, but will be sure to look into the PreviewCompatibleImage.js component to make sure the tests pass

from ml5-website.

wenqili avatar wenqili commented on May 26, 2024

@wenqili - All good now! I just needed to place the images in the correct directory:

~/ml5-website-2/docs/assets/

  • I haven't tested yet with an external URL, but will be sure to look into the PreviewCompatibleImage.js component to make sure the tests pass

I don't think external link will work here, since the image will pass through the imagesharp process. I can add an alternative option here to display external images. Like the way I did for the community post.

from ml5-website.

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.