Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

raihan004's avatar

Cannot import vue npm package globally for inertia app?

Hi, I'm trying to work with toast notifications but I cannot import the Vue npm package globally.

here is the import statement import Notifications from 'notiwind';

createInertiaApp({ title: (title) => ${title} - ${appName}, resolve: (name) => resolvePageComponent( ./Pages/${name}.vue, import.meta.glob("./Pages/**/*.vue") ), setup({ el, app, props, plugin }) { return createApp({ render: () => h(app, props) }) .use(Notifications) .use(plugin) .use(pinia) .use(ZiggyVue, Ziggy) .mount(el); }, });

but it does not work, I see the console error GET http://127.0.0.1:5173/node_modules/.vite/deps/notiwind.js?v=d9c511f6 net::ERR_ABORTED 504 (Gateway Timeout)

can someone share an idea, on how may I solve the issue thank you

0 likes
1 reply

Please or to participate in this conversation.