Node-bunyan: Error when bundling with Webpack

Created on 13 Apr 2016  路  3Comments  路  Source: trentm/node-bunyan

Hi all

Using webpack bundling Bunyan and I'm seeing the following when the bundling is complete:

WARNING in ./~/bunyan/~/dtrace-provider/dtrace-provider.js
Module not found: Error: Cannot resolve 'file' or 'directory' ./build in /home/ray/source/ca.ui.shell.core/node_modules/bunyan/node_modules/dtrace-provider
 @ ./~/bunyan/~/dtrace-provider/dtrace-provider.js 17:22-81

Any ideas?

Using version 1.8.0 of bunyan

Most helpful comment

Still having the same issue, even after setting up the noParse

All 3 comments

Was having the same issue and came across this note on the README.md.

Still having the same issue, even after setting up the noParse

Having below fixed the issue for me:

noParse: [/dtrace.js$/, /serializer.js$/],

Seems like noParse sends the filename as content, found this out while trying as it a function:
// since webpack 3.0.0 noParse: function(content) { return /jquery|lodash/.test(content); }

https://webpack.js.org/configuration/module/#module-noparse

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ronkorving picture ronkorving  路  5Comments

yelworc picture yelworc  路  5Comments

LeonFedotov picture LeonFedotov  路  7Comments

brandonmp picture brandonmp  路  6Comments

marnusw picture marnusw  路  11Comments