Skip to content

Instantly share code, notes, and snippets.

@bobzhang
Created July 11, 2016 02:54
Show Gist options
  • Save bobzhang/be3fb278960844a12bf9e0cb26d8926e to your computer and use it in GitHub Desktop.
Save bobzhang/be3fb278960844a12bf9e0cb26d8926e to your computer and use it in GitHub Desktop.
error log
reason-demo>npm run build
^[[?25h
> @ build /Users/hongbozhang/git/bucklescript-addons/examples/reason-demo
> source dependencyEnv && bsc -pp ./node_modules/reason/refmt_impl.native -impl hello.re
/Users/hongbozhang/git/bucklescript-addons/examples/reason-demo/node_modules/dependency-env/.bin/dependencyEnv.js:60
packageName.replace(new RegExp("\-", "g"), function(s){return "_";}).toUpperCase() + "__";
^
TypeError: Cannot read property 'replace' of undefined
at /Users/hongbozhang/git/bucklescript-addons/examples/reason-demo/node_modules/dependency-env/.bin/dependencyEnv.js:60:16
at traverseSync (/Users/hongbozhang/git/bucklescript-addons/examples/reason-demo/node_modules/dependency-env/.bin/dependencyEnv.js:26:3)
at Object.<anonymous> (/Users/hongbozhang/git/bucklescript-addons/examples/reason-demo/node_modules/dependency-env/.bin/dependencyEnv.js:55:1)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)
at startup (node.js:134:18)
at node.js:961:3
Preparing Environment Variables:
reason-demo>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment