We use Webpack to package our node app, but we can't make pmx work because it looks for some conf in the package.json.
We get the below exception on require(pmx)
1|myapp| TypeError: Path must be a string. Received undefined
1|myapp| at assertPath (path.js:28:11)
1|myapp| at Object.dirname (path.js:1352:5)
1|myapp| at findPackageJson (/[...]myapp/build/ssr/webpack:/node_modules/pmx/lib/configuration.js:24:36)
1|myapp| at Object.module.exports.Options.init (/[...]myapp/build/ssr/webpack:/node_modules/pmx/lib/configuration.js:43:26)
1|myapp| at Object.module.exports.module.exports (/[...]myapp/build/ssr/webpack:/node_modules/pmx/lib/pmx.js:31:31)
We used Webpack mostly for convenience, so we might fallback to a "classic" deployment with node_modules and so on. However I was wondering if it would be an easy fix on your side to not look for package.json (besides it's not a documented feature... is it?)
Thanks :-)
We use Webpack to package our node app, but we can't make pmx work because it looks for some conf in the
package.json.We get the below exception on
require(pmx)We used Webpack mostly for convenience, so we might fallback to a "classic" deployment with node_modules and so on. However I was wondering if it would be an easy fix on your side to not look for package.json (besides it's not a documented feature... is it?)
Thanks :-)