creativetimofficial / notus-react

Notus React: Free Tailwind CSS UI Kit and Admin
https://www.creative-tim.com/product/notus-react
MIT License
775 stars 1.08k forks source link

[Bug] Images and Designs are not visible #25

Open PatriciaCollinz opened 12 months ago

PatriciaCollinz commented 12 months ago

Version

1.1.0

Reproduction link

https://codepen.io/Patricia-Collins/pen/bGQoWoj

Operating System

Win 10

Device

Asus

Browser & Version

Chrome Version 114

Steps to reproduce

I just shared the package.json since that's the only thing different from your code, if you can check what's wrong with that

What is expected?

Images to be uploaded and designs

What is actually happening?

Images and designs not showing up


Solution

Additional comments

My work network won't let me upload anything without blocking the site I'm sorry I can just provide the package.json file plus I'm using node 19.8.1

yusufkocak1 commented 8 months ago

Use the images by importing them as follows

import React from 'react';
import myImage from '../assets/my-image.jpg';

const MyComponent = () => {
  return (
    <div>
      <img src={myImage} alt="Resim Açıklaması" />
    </div>
  );
};

export default MyComponent;
khatriaadarsh commented 1 month ago

import React from 'react'; import myImage from './assets/my-image.jpg';

const MyComponent = () => { return (

Resim Açıklaması

); };

export default MyComponent;