Skip to content

Instantly share code, notes, and snippets.

@edrex
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save edrex/9303090 to your computer and use it in GitHub Desktop.

Select an option

Save edrex/9303090 to your computer and use it in GitHub Desktop.

Failing test case, demonstating error when using N3.js module with webpack.

Usage:

Stack trace:

Uncaught TypeError: undefined is not a function N3.js:23
Object.defineProperty.get N3.js:23
(anonymous function) t.js:2
require (index):21
(anonymous function) (index):42
(anonymous function) bundle.js:46
<html data-ng-app='dive'>
<body>
<div ng-view></div>
<script src="bundle.js"></script>
<script>
</script>
</body>
</html>
{
"name": "webpacktest",
"devDependencies": {
"webpack": "~1.0.4",
"n3": "~0.2.4"
},
"scripts": {
"run": "webpack-dev-server -d"
}
}
var n3 = require('n3')
new n3.StreamParser()
module.exports = {
entry: "./t.js",
output: {
filename: "bundle.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment