gpt4 book ai didi

javascript - Bower 安装后出现的消息是 "Cannot read property '原型(prototype)'未定义"

转载 作者:行者123 更新时间:2023-12-03 05:57:33 24 4
gpt4 key购买 nike

Chrome 控制台显示上面的按摩

pnotify.animate.js:1 Uncaught TypeError: Cannot read property 'prototype' of undefined(anonymous function) @ pnotify.animate.js:1(anonymous function) @ pnotify.animate.js:1(anonymous function) @ pnotify.animate.js:1
pnotify.buttons.js:1 Uncaught TypeError: Cannot read property 'prototype' of undefined(anonymous function) @ pnotify.buttons.js:1(anonymous function) @ pnotify.buttons.js:1(anonymous function) @ pnotify.buttons.js:1
pnotify.callbacks.js:1 Uncaught TypeError: Cannot read property 'prototype' of undefined(anonymous function) @ pnotify.callbacks.js:1c @ pnotify.callbacks.js:1(anonymous function) @ pnotify.callbacks.js:1
pnotify.confirm.js:1 Uncaught TypeError: Cannot read property 'prototype' of undefined

凉亭安装后。

我正在尝试解决,但不知道为什么。

我该怎么办。

它位于 Bower.json 之上

"dependencies": {
"font-awesome": "4.4.0",
"jquery": "1.11.3",
"jquery-ui": "^1.11.4",
"bootstrap": "3.3.6",
"angular": "^1.5.7",
"angular-bootstrap": "1.3.3",
"angular-animate": "^1.4.0",
"angular-cookies": "^1.4.0",
"angular-messages": "^1.4.0",
"angular-resource": "^1.4.0",
"angular-ui-router": "0.2.15",
"angular-sanitize": "^1.4.0",
"angular-touch": "^1.4.0",
"oclazyload": "foothold-oclazyload#1.0.6",
"angular-local-storage": "^0.5.2",
"angular-nicescroll": "^0.0.9",
"jquery-validation": "^1.15.1",
"pnotify": "^3.0.0",
"sweetalert": "^1.1.3"
}

最佳答案

看起来像pnotify包的bower.jsonis not loading the main .js file properly .

一个可能的解决方案是转到主目录中 Bower 安装软件包的 bower_components/pnotify 文件夹,并编辑 bower.json 以确保 “dist/pnotify.js” 是第一行:

{
"name": "pnotify",
"description": "JavaScript notification plugin.",
"main": [
"dist/pnotify.js",
"dist/pnotify.animate.js",
"dist/pnotify.brighttheme.css",
"dist/pnotify.buttons.css",
"dist/pnotify.buttons.js",
"dist/pnotify.callbacks.js",
"dist/pnotify.confirm.js",
"dist/pnotify.css",
"dist/pnotify.desktop.js",
"dist/pnotify.history.css",
"dist/pnotify.history.js",
"dist/pnotify.mobile.css",
"dist/pnotify.mobile.js",
"dist/pnotify.nonblock.js"
],
"ignore": [
"build-tools/",
"includes/",
"devnote*.*",
"index.html",
"testing.html",
"buildcustom.php",
"package.json",
"src/"
],
"license": [
"Apache-2.0"
],
"dependencies": {
"jquery": ">=1.6"
}
}

关于javascript - Bower 安装后出现的消息是 "Cannot read property '原型(prototype)'未定义",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39864355/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com