helpers / handlebars-helpers

188 handlebars helpers in ~20 categories. Can be used with Assemble, Ghost, YUI, express.js etc.
http://assemble.io/helpers/
MIT License
2.22k stars 364 forks source link

missing dependencies #347

Closed b1lly closed 5 years ago

b1lly commented 5 years ago

I tried installing handlebars-helpers, and then running it against my project--it's giving me a bunch of missing modules for some reason when I try to bundle it up.

I'm bundling with the latest version of rollup, and node. For rollup, i'm using the commonJS and nodeResolve plugins with rollup, in order to work well with commonjs modules that use require. It works with other dependencies fine, just having trouble with this one for some reason?

I could probably just manually install the url, querystring and util packages into my project, but shouldn't handlebars-helpers already include the necessary dependencies? perhaps i'm doing something wrong?

[11:56:19] Starting 'bundleTemplates'...
preferring built-in module 'url' over local alternative at '/Users/Billy/dev/answers/test/node_modules/url/url.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'url' over local alternative at '/Users/Billy/dev/answers/test/node_modules/url/url.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'url' over local alternative at '/Users/Billy/dev/answers/test/node_modules/url/url.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'url' over local alternative at '/Users/Billy/dev/answers/test/node_modules/url/url.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'url' over local alternative at '/Users/Billy/dev/answers/test/node_modules/url/url.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
'url' is imported by node_modules/handlebars-helpers/lib/url.js, but could not be resolved – treating it as an external dependency
'url' is imported by commonjs-external:url, but could not be resolved – treating it as an external dependency
preferring built-in module 'querystring' over local alternative at '/Users/Billy/dev/answers/test/node_modules/querystring/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'querystring' over local alternative at '/Users/Billy/dev/answers/test/node_modules/querystring/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'querystring' over local alternative at '/Users/Billy/dev/answers/test/node_modules/querystring/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'querystring' over local alternative at '/Users/Billy/dev/answers/test/node_modules/querystring/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'querystring' over local alternative at '/Users/Billy/dev/answers/test/node_modules/querystring/index.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
'querystring' is imported by node_modules/handlebars-helpers/lib/url.js, but could not be resolved – treating it as an external dependency
'querystring' is imported by commonjs-external:querystring, but could not be resolved – treating it as an external dependency
preferring built-in module 'util' over local alternative at '/Users/Billy/dev/answers/test/node_modules/util/util.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'util' over local alternative at '/Users/Billy/dev/answers/test/node_modules/util/util.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'util' over local alternative at '/Users/Billy/dev/answers/test/node_modules/util/util.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
preferring built-in module 'util' over local alternative at '/Users/Billy/dev/answers/test/node_modules/util/util.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
'util' is imported by node_modules/handlebars-utils/index.js, but could not be resolved – treating it as an external dependency
preferring built-in module 'util' over local alternative at '/Users/Billy/dev/answers/test/node_modules/util/util.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning
'util' is imported by commonjs-external:util, but could not be resolved – treating it as an external dependency