简体   繁体   中英

Noty not defined

I am trying to install noty to get notifications in my laravel project, but it doesn't seem to be working, I always get that Noty is not defined, I have tried everything and don't really know what to do, any solution?

Instalation:

在此处输入图像描述

App.scss:

在此处输入图像描述

Bootstrap.js:

在此处输入图像描述

app.blade.php:

在此处输入图像描述

Error:

Uncaught ReferenceError: Noty is not defined

I would appreciate some help.

Fixed it by adding a window.onload function

try add run this when you want to test:

npm run dev

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM