Parcel: Parcel generates wrong path for images

Created on 14 Mar 2019  路  2Comments  路  Source: parcel-bundler/parcel

馃悰 bug report

Parcel generates wrong path for image source url:
image
while the image is available at url:
http://localhost:3000/logo.88c423d2.svg

馃帥 Configuration (.babelrc, package.json, cli command)

Demo app with all the configuration available here:
https://github.com/edmundas-ramanauskas/parcel-demo/

馃 Expected Behavior

path to asset in img tag should be /logo.88c423d2.svg

馃槸 Current Behavior

path to asset in img tag is /../../../Workspace/parcel-demo/logo.88c423d2.svg

馃實 Your Environment

| Software | Version(s) |
| ---------------- | ---------- |
| Parcel | 1.12.0
| Node | v11.10.0
| npm/Yarn | 1.13.0
| Operating System | Ubuntu 18.10

Waiting

Most helpful comment

Parcel | 1.12.0

This should be fixed in Parcel 1.12.1 and later

All 2 comments

Parcel | 1.12.0

This should be fixed in Parcel 1.12.1 and later

yep, can confirm. thanks for quick response.

Was this page helpful?
0 / 5 - 0 ratings