2016-10-05 9 views
0

クロームコンソールをインストールした後、「未定義のプロパティを読み取ることができません 『プロトタイプ』」であるメッセージがが立ち上がっバウアーは、インストールした後バウアーは

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 

上のマッサージを示しています。

私は解決しようとしていますが、理由はわかりません。 I.

を行うことが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" 
    } 
+0

あなたはバワーで何を設置していますか? 'bower.json'設定を投稿できますか? – Oberon

+0

編集ポスト。 plzは確認します。 –

答えて

1

上でどのように

pnotifyパッケージis not loading the main .js file properlybower.jsonように思えます。

{ 
    "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" 
    } 
} 
0

私は同じエラーが発生しました:

可能な解決策は、バウアーは、あなたのパッケージをインストールしているあなたのメインディレクトリにbower_components/pnotifyフォルダに移動し、"dist/pnotify.js"は、最初の行であることを確認するためにbower.jsonを編集することです。

メインのPnotifyファイルpnotify.jsの直後に、pnotify.custom.min.jsを追加しました。

関連する問題