tabler-react icon indicating copy to clipboard operation
tabler-react copied to clipboard

Error: Can't resolve '/img/flags/ad.svg'

Open ChessUsername opened this issue 3 years ago • 4 comments

HI, i've installed "tabler-react": "^2.0.0-alpha.1" and I'm stuck with this error:

./node_modules/tabler-react/dist/Tabler.css (./node_modules/css-loader/dist/cjs.js??ref--5-oneOf-4-1!./node_modules/postcss-loader/src??postcss!./node_modules/tabler-react/dist/Tabler.css)
Error: Can't resolve '/img/flags/ad.svg' in '/home/myuser/mypath/node_modules/tabler-react/dist'

How can I solve it? Already tried to delete node_modules and redoing npm install but this didn't solve the problem. Btw, with "tabler-react": "^1.30.1", there is no error but I need StatsCard with charts, so I need the 2.0.0-alpha.1 version...

Thank for the help!

ChessUsername avatar May 29 '21 17:05 ChessUsername

Having the same issue. Thought the problem is that the flags are located in images folder and not in img, but changing it, does not help

esskar avatar Jun 05 '21 20:06 esskar

Changing it to "./images/flags/ad.svg" (replacing all /img to ./images/) helps a little bit, but that it complains about './images/flags/es-ct.svg' which indeed does not exist.

esskar avatar Jun 05 '21 20:06 esskar

You Have to Put A Dot In Starting

MahendraBishnoi29 avatar Sep 03 '21 06:09 MahendraBishnoi29

There are no components in the node module. Currently, when you install that version, many folder files do not exist...

CaliforniaLuv avatar Mar 18 '22 05:03 CaliforniaLuv