Last active
May 18, 2017 19:04
-
-
Save nZac/b1de8ffe1e1b959eb6902816d8cb0f28 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Uncaught TypeError: Cannot read property 'getAttribute' of undefined | |
at Notification.UIkit._getProps (http://localhost:5000/static/js/bundle.js:12413:25) | |
at Notification.UIkit._initProps (http://localhost:5000/static/js/bundle.js:12348:43) | |
at Notification.UIkit.$mount (http://localhost:5000/static/js/bundle.js:12574:14) | |
at Notification.created (http://localhost:5000/static/js/bundle.js:16966:18) | |
at http://localhost:5000/static/js/bundle.js:12131:66 | |
at Array.forEach (native) | |
at Notification.UIkit._callHook (http://localhost:5000/static/js/bundle.js:12131:22) | |
at Notification.UIkit._init (http://localhost:5000/static/js/bundle.js:12275:14) | |
at new Notification (eval at createClass (http://localhost:5000/static/js/bundle.js:12089:16), <anonymous>:2:47) | |
at Function.UIkit.(anonymous function) [as notification] (http://localhost:5000/static/js/bundle.js:12667:24) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width" /> | |
<title></title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.0-beta.22/css/uikit.min.css" /> | |
</head> | |
<body> | |
<div class="uk-container"> | |
<div class="uk-card uk-card-body uk-card-primary"> | |
<h3 class="uk-card-title">Example headline</h3> | |
<button class="uk-button uk-button-default" title="Hello World" uk-tooltip>Hover</button> | |
</div> | |
</div> | |
<script src="static/js/bundle.js"></script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import jQuery from 'jquery'; | |
import UIkit from 'uikit'; | |
import Icons from 'uikit/dist/js/uikit-icons'; | |
UIkit.use(Icons); | |
UIkit.notification('Hello world.'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
entry: 'index.js', | |
output: { | |
filename: 'bundle.js', | |
path: path.resolve(__dirname, 'static/js') | |
}, | |
resolve: { | |
modules: [ | |
"node_modules", | |
path.resolve(__dirname) | |
], | |
extensions: [".js", ".json", ".jsx", ".css"] | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment