Are you sure you are running vite 3.x and the plugin is up to date?
npm update
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I got an error [plugin:vite:import-analysis] import.meta.glob() can only accept string literals. when I added vite asset URL helper.
import.meta.glob([
'../images/**',
'../fonts/**',
]);
So I changed it like this.
import.meta.glob(
'../images/**'
);
Error is Uncaught SyntaxError: Unexpected token ':' (at app.js:8:31)
The compile file app.js show me.
{ "../images/about-banner.png": () => import("/resources/images/about-banner.png?import"),
Are you sure you are running vite 3.x and the plugin is up to date?
npm update
Please or to participate in this conversation.