[Pkg-javascript-devel] need help with building node-dagre-d3-renderer with webpack

Pirate Praveen praveen at onenetbeyond.org
Tue Jun 25 09:19:12 BST 2019


Control: tag -1 -help

On Tue, 25 Jun, 2019 at 1:22 PM, Pirate Praveen 
<praveen at onenetbeyond.org> wrote:
> The easiest fix would be updating node-d3-format, but it is not team
> maintained any more (result of an accidental hijack from me). Other
> option would be to fix webpack configuration. Hope someone can help 
> here.

While looking for something else in package.json, I realized, there was 
a line excluding node_modules and there was two places I needed to 
update. With the following patch, webpack is successful.

--- a/webpack.config.babel.js
+++ b/webpack.config.babel.js
@@ -15,7 +15,7 @@
   },

   resolve: {
-    modules: ['/usr/lib/nodejs'],
+    modules: ['/usr/lib/nodejs','node_modules'],
   },

   resolveLoader: {
@@ -26,7 +26,6 @@
     rules: [
       {
         test: /\.js$/,
-        exclude: /node_modules/,
         use: {
           loader: 'babel-loader'
         }
@@ -49,7 +48,7 @@
   },

   resolve: {
-    modules: ['/usr/lib/nodejs'],
+    modules: ['/usr/lib/nodejs','node_modules'],
   },

   resolveLoader: {
@@ -60,7 +59,6 @@
     rules: [
       {
         test: /\.js$/,
-        exclude: /node_modules/,
         use: {
           loader: 'babel-loader'
         }






More information about the Pkg-javascript-devel mailing list