parcel-plugin-inlinesvg icon indicating copy to clipboard operation
parcel-plugin-inlinesvg copied to clipboard

Cannot resolve dependency './filename.svg'

Open jwhazel opened this issue 6 years ago • 4 comments

MacOSX 10.12.6 Node v10.0.0 Parcel 1.5.1

Tried installing this in my project and kept getting the above error. Cloned this whole repo and ran the example and get the same thing. It errors out on trying to import any svg file.

jwhazel avatar Jun 06 '18 14:06 jwhazel

Hi @jwhazel, I'll have a look asap. Sorry to ask, is there a reason why you are using an old version of Parcel?

albinotonnina avatar Jun 06 '18 15:06 albinotonnina

@albinotonnina: the example here uses 1.5.1. I know that in semver, ^1.5.1 should resolve to 1.11.0 nowadays, but I still ended up with 1.5.1 in #16.

dandv avatar Dec 24 '18 06:12 dandv

The same here with Windows10 64x Node 8.11.2 parcel v1.11.0

hendrul avatar Dec 27 '18 21:12 hendrul

I debug this probelm and i see that lib/assert.js require 'parcel-bundler'. I install 'parcel-bundler' and it work for me

shulamyt avatar Feb 13 '19 13:02 shulamyt