max-mapper / max-mapper/inline-styles

rootPath is not set

Open
#4 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
23
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Hey, it seem to be an error relative to the module

`
/usr/local/lib/node_modules/inline-styles/node_modules/imageinliner/src/image.js:27
throw "rootPath is not set, but " + imagePath + " requires rootImagePath";
^
rootPath is not set, but /img/home/client-avatar.jpg requires rootImagePath
`

I just tried ` inline-styles index.html > inlined.html` on a built index.html in a vue cli 3 project

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the issue with `inline-styles index.html > inlined.html` using the built Vue CLI 3 page, then inspect `src/image.js` at line 27 and trace how the image path is handled. Done means the reported input no longer fails with the `rootPath is not set` error and the expected output is generated.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.