Different results using URL #13327
Replies: 1 comment
-
I'm not familiar with Phaser, but I suspect this problem originates in Vite. When you're using So this should work: return new URL(`../assets/${file}`, import.meta.url).href; In this example, the 'static' part is the When you write For reference, the docs this are at: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
i'm working with vue + phaser and i have this code in my project:
it's not working
it's work.
i have checked with console.log. The return of the first case is "file:///home/vicente/appandtec/solemne2/parabolic-game/src/assets/background.png" and "http://localhost:8080/img/background.921e58e9.png" for the other case.
What is happen?
Beta Was this translation helpful? Give feedback.
All reactions