Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"esbuild-svelte" didn't set a resolve directory

See original GitHub issue

When i use url() in css like:

content: url('img/img.jpg');
/* or */ 
background-image: url('img/img.jpg');

i have a error:

> fakecss:/path/to/Component.esbuild-svelte-fake-css:1:458: error: Could not resolve "img/img.jpg" (the plugin "esbuild-svelte" didn't set a resolve directory)

To Reproduce REPO

Expected behavior bundling url() to css 🤷🏻‍♂️

  • esbuild-svelte version: latest
  • esbuild version: latest
  • Svelte preprocessors used (if any): sass

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

EMH333commented, Sep 18, 2021

Fixed in v0.5.5

EMH333commented, Sep 19, 2021

Oh wow! That appears to be a bug in rewrite-imports. I’ll follow up later to confirm. Fix released in v0.5.6

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugins - esbuild
An esbuild plugin is an object with a name and a setup function. ... If you want to resolve a path relative to...
Read more >
SvelteKit could not resolve dependency even though it's external
I found discussion about this issues in SvelteKit repo ... I switched to bcryptjs and didn't get the error output, I couldn't get...
Read more >
esbuild-svelte-inertia - npm Package Health Analysis - Snyk
Ensure you're using the healthiest npm packages. Snyk scans all the packages in your projects for vulnerabilities and provides automated fix ...
Read more >
esbuild-svelte - npm
Plugin to compile svelte components for bundling with esbuild. Install. Install this plugin, esbuild and Svelte. A simple build script looks ...
Read more >
TSConfig Reference - Docs on every TSConfig option
Lets you set a base directory to resolve non-absolute module names. You can define a root folder where you can do absolute file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found