Skip to content

Instantly share code, notes, and snippets.

@mchelen
Forked from mchelen/.gitignore
Last active August 29, 2015 14:24
Show Gist options
  • Save mchelen/9249adace78338b670a4 to your computer and use it in GitHub Desktop.
Save mchelen/9249adace78338b670a4 to your computer and use it in GitHub Desktop.
Browserify my Node package
node_modules
bundle.js
Uncaught TypeError: require.resolve is not a function7../dict @ bundle.js:956s @ bundle.js:1(anonymous function) @ bundle.js:110.../generated/parser @ bundle.js:1465s @ bundle.js:1(anonymous function) @ bundle.js:19../dict @ bundle.js:1215s @ bundle.js:1(anonymous function) @ bundle.js:14../lib/index @ bundle.js:826s @ bundle.js:1(anonymous function) @ bundle.js:12.jsonpath @ bundle.js:15s @ bundle.js:1(anonymous function) @ bundle.js:11.nativeplantcenter @ bundle.js:2s @ bundle.js:1e @ bundle.js:1(anonymous function) @ bundle.js:1
<html>
<script src="bundle.js"></script>
</html>
var npc = require('nativeplantcenter');
var foo = new npc();
foo.keyword("bittersweet",function(result){
console.log("search result: "+JSON.stringify(result,null," "));
});
{
"name": "9249adace78338b670a4",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+ssh://git@gist.github.com/9249adace78338b670a4.git"
},
"author": "Mike Chelen <michael.chelen@gmail.com> (https://github.com/mchelen/)",
"license": "ISC",
"bugs": {
"url": "https://gist.github.com/9249adace78338b670a4"
},
"homepage": "https://gist.github.com/9249adace78338b670a4",
"dependencies": {
"nativeplantcenter": "^0.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment