Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback on using new URL ( , import. meta. URL). href #15290

Closed
1 of 4 tasks
write31bug opened this issue Dec 8, 2023 · 1 comment
Closed
1 of 4 tasks

Feedback on using new URL ( , import. meta. URL). href #15290

write31bug opened this issue Dec 8, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@write31bug
Copy link

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure?

Explain in Detail

When I use template strings like this,
const pngName = 'sun.png' let img = new URL(../../assets/icons/weather/${pngName}, import.meta.url).href
it's correct.Or I can use it this way
let img = new URL(@/assets/icons/weather/sun.png, import.meta.url).href, which is also correct.
But using both together is wrong.like
const pngName = 'sun.png' let img = new URL(@/assets/icons/weather/${pngName}, import.meta.url).href

Your Suggestion for Changes

Please continue to improve the relevant manuals or optimize them

Reproduction

No response

Steps to reproduce

No response

@write31bug write31bug added the documentation Improvements or additions to documentation label Dec 8, 2023
@patak-dev
Copy link
Member

Duplicate of #10597

@patak-dev patak-dev marked this as a duplicate of #10597 Jan 9, 2024
@patak-dev patak-dev closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants