question-mark
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.

window.URL no emit file

See original GitHub issue

Clear and concise description of the problem

const metaUrl = new window.URL('./nested/asset.png', import.meta.url) can’t emit asset

Suggested solution

const metaUrl = window.URL('./nested/asset.png', import.meta.url)

Alternative

No response

Additional context

No response

Validations

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
poyohocommented, Dec 17, 2021

thanks, should use the isomorphic syntax to support new URL, this is better way.

0reactions
patak-devcommented, Dec 17, 2021

Should we close this issue?

Read more comments on GitHub >

github_iconTop Results From Across the Web

.tsbuildinfo file should be created when the noEmit flag is ...
we want to call tsc before running jest to not have to deal with tsc's output regarding newly emitted files.
Read more >
Typescript noEmit use case - Stack Overflow
What is the use case for noEmit in Typescript? I'm interested because I want to see if I can use this for development...
Read more >
TSConfig Reference - Docs on every TSConfig option
Base Url - baseUrl. Lets you set a base directory to resolve non-absolute module names. You can define a root folder where you...
Read more >
Using files from web applications - Web APIs - MDN Web Docs
This is just the file name, and does not include any path information. ... const objectURL = window.URL.createObjectURL(fileObj);
Read more >
file-loader - webpack - JS.ORG
The file-loader resolves import / require() on a file into a url and emits the ... If false, the loader will return a...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found