react-svg-textures icon indicating copy to clipboard operation
react-svg-textures copied to clipboard

Getting an error while trying to run the basic usage example

Open chadams opened this issue 7 years ago • 2 comments
trafficstars

import { Lines } from "react-svg-textures"; // 
./src/mods/Lines.js
53:30-35 'react-svg-textures' does not contain an export named 'Lines'.

I also tried

import Textures from "react-svg-textures"; 
const Lines = Texture.Lines

but although this gave no error, the basic usage example didn't render properly. Just see a single purple dot

chadams avatar Apr 27 '18 01:04 chadams

thanks for reporting this - will look into it

finnfiddle avatar May 14 '18 11:05 finnfiddle

import Paths from "react-svg-textures/es/Paths"; seems to work

@finnfiddle this appears to be broken upstream in potion as well

dlasky avatar Jul 23 '18 03:07 dlasky