teambit / react-tailwind-env

An example of a custom react env with basic support for tailwindcss
9 stars 7 forks source link

Unable to get correct image path #8

Closed yara-tle closed 2 years ago

yara-tle commented 3 years ago

When importing images in a component the extension are not able to resolve correct path to the image. This with regular imports e.g

import logo from './images/logo.png';

<img src={logo} alt="yara logo" width="50" height="50" />

yara-tle commented 3 years ago

Seems like the filename gets hashed, but no image.

Screenshot 2021-08-08 at 13 47 09
yara-tle commented 3 years ago

This is also a problem in the plainteambit.react/react extension.

GiladShoham commented 3 years ago

If it's a problem with the plain react extension, better to open the issue on the main https://github.com/teambit/bit repo