Search code examples
angularjsbrowserifypdfkitgrunt-browserify

Is pdfkit compatible with grunt-browserify?


Does pdfkit work with grunt-browserify? I'm attempting to wire pdfkit in with an angular single page app but am getting the following errors during my build process:

Running "browserify:dist" (browserify) task 
 TypeError: Arguments to path.resolve must be strings
Warning: Error running grunt-browserify. Used --force, continuing.
 TypeError: Arguments to path.resolve must be strings
Warning: Error running grunt-browserify. Used --force, continuing.
 Fatal error: Callback was already called.

Any ideas? I already have requires for brfs and buffer.


Solution

  • Make sure the attributes in your package.json are in strings, and that you are passing in a directory name not a file name.