1

https://github.com/rorymcd98/spot-the-image-gen

Here's my repo. To install simply do:

yarn install

yarn dev

The issue that I'm having is with Elastic UI's EuiIcon in the ./src/components/Counters.tsx. I'm trying to import shard and bullseye type icons.

Problem: As you can see, in the current version they are not rendering. In the dev server I'm getting an error:

caught (in promise) TypeError: Failed to fetch dynamically imported module: http://localhost:5174/node_modules/.vite/deps/assets/bullseye?import

I've tried quite a few things, but based on the documentation I can't tell where I'm going wrong. I have tried creating a public/assets/{name}.svg file for each but this didn't appear to work.

Could someone take a brief look at my repo and see where I'm going wrong? Thanks.

Rory McDonald
  • 253
  • 2
  • 8

0 Answers0