browserify / browserify-handbook

how to build modular applications with browserify
Other
4.58k stars 292 forks source link

Uncaught TypeError: Invalid Version: at new SemVer #96

Closed shirha closed 2 years ago

shirha commented 2 years ago

I'm trying out browserify so I created a little node js code with a require('github-db').default in it then run this command.

browserify main.js -o bundle.js

but in the browser, I got "Uncaught TypeError: Invalid Version: at new SemVer" but I don't really know how to proceed. The program works in node. Please help.

package.json

{
  "name": "derelict",
  "version": "1.0.0",
  "description": "",
  "main": "main.js",
  "dependencies": {
    "github-db": "^1.1.3"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}
shirha commented 2 years ago

sorry wrong place