AppDynamics (Node.js/Express) dependencies broken compiling with Webpack--can anyone confirm? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) The Ask Question Wizard is Live! Data science time! April 2019 and salary with experience Should we burninate the [wrap] tag?Webpack in production: Why React Native errors?Webpack Express Cannot Resolve Module 'fs', Request Dependency is ExpressionWebpack build process - module not found: Error: Cannot resolve module *ERROR in ./~/node-env-file/lib/index.js Module not found: Error: Cannot resolve module 'fs'CHILD_PROCESS , DGRAM , DEFAULTABLE.jsEnable ContextReplacementPlugin to ignore config and test set up files in webpackUsing Firebase in Node Server Typescript Filei am trying to connect to node.js and i have some errors in webstormERROR in ./node_modules/mongodb-core/lib/uri_parser.js - Module not found: Error: Can't resolve 'dns' inERROR in node-telegram-bot-api Module not found: Can't resolve 'fs', 'net', 'tls' in node-telegram-bot-api

Why aren't air breathing engines used as small first stages

I need to find the potential function of a vector field.

Is there a "higher Segal conjecture"?

Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?

Why are there no cargo aircraft with "flying wing" design?

How do I mention the quality of my school without bragging

Should I discuss the type of campaign with my players?

Single word antonym of "flightless"

Why was the term "discrete" used in discrete logarithm?

Is there a service that would inform me whenever a new direct route is scheduled from a given airport?

What are 'alternative tunings' of a guitar and why would you use them? Doesn't it make it more difficult to play?

When is phishing education going too far?

Withdrew £2800, but only £2000 shows as withdrawn on online banking; what are my obligations?

Is above average number of years spent on PhD considered a red flag in future academia or industry positions?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

What are the pros and cons of Aerospike nosecones?

How to find all the available tools in macOS terminal?

"Seemed to had" is it correct?

What is the longest distance a 13th-level monk can jump while attacking on the same turn?

Is there a concise way to say "all of the X, one of each"?

Do I really need recursive chmod to restrict access to a folder?

Did Kevin spill real chili?

What LEGO pieces have "real-world" functionality?

What do you call a plan that's an alternative plan in case your initial plan fails?



AppDynamics (Node.js/Express) dependencies broken compiling with Webpack--can anyone confirm?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)
The Ask Question Wizard is Live!
Data science time! April 2019 and salary with experience
Should we burninate the [wrap] tag?Webpack in production: Why React Native errors?Webpack Express Cannot Resolve Module 'fs', Request Dependency is ExpressionWebpack build process - module not found: Error: Cannot resolve module *ERROR in ./~/node-env-file/lib/index.js Module not found: Error: Cannot resolve module 'fs'CHILD_PROCESS , DGRAM , DEFAULTABLE.jsEnable ContextReplacementPlugin to ignore config and test set up files in webpackUsing Firebase in Node Server Typescript Filei am trying to connect to node.js and i have some errors in webstormERROR in ./node_modules/mongodb-core/lib/uri_parser.js - Module not found: Error: Can't resolve 'dns' inERROR in node-telegram-bot-api Module not found: Can't resolve 'fs', 'net', 'tls' in node-telegram-bot-api



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















Has anyone experienced Webpack dependency compiling issues when using the AppDynamics library? And did you find a way to work around it? I believe this is an issue stemming from their library.



When trying to install the AppDynamics package for monitoring a Node.js/Express application, our Webpack build process is not able to import a handful of dependencies. Specifically, the errors output are:



WARNING in ./node_modules/appdynamics/lib/core/agent.js 445:8-28
require.main.require is not supported by webpack.
@ ./node_modules/appdynamics/index.js 1:17-44
@ ./server.ts

ERROR in ./node_modules/appdynamics-zmq/lib/index.js
Module not found: Error: Can't resolve '../zmq' in '.../my-app/node_modules/appdynamics-zmq/lib'
@ ./node_modules/appdynamics-zmq/lib/index.js 24:10-27
@ ./node_modules/appdynamics-zmq/index.js
@ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
@ ./node_modules/appdynamics/lib/libproxy/libproxy.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/appdynamics-libagent/index.js
Module not found: Error: Can't resolve './appd_libagent' in '.../my-app/node_modules/appdynamics-libagent'
@ ./node_modules/appdynamics-libagent/index.js 36:9-35
@ ./node_modules/appdynamics/lib/libagent/libagent-connector.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/appdynamics-native/index.js
Module not found: Error: Can't resolve './appdynamics' in '.../my-app/node_modules/appdynamics-native'
@ ./node_modules/appdynamics-native/index.js 29:10-34
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/appdynamics-protobuf/index.js
Module not found: Error: Can't resolve './protobuf_for_node' in '.../my-app/node_modules/appdynamics-protobuf'
@ ./node_modules/appdynamics-protobuf/index.js 29:10-40
@ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
@ ./node_modules/appdynamics/lib/libproxy/libproxy.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/log4js/lib/appenders/hipchat.js
Module not found: Error: Can't resolve 'hipchat-notifier' in '.../my-app/node_modules/log4js/lib/appenders'
@ ./node_modules/log4js/lib/appenders/hipchat.js 3:14-41
@ ./node_modules/log4js/lib/appenders sync ^./.*$
@ ./node_modules/log4js/lib/log4js.js
@ ./node_modules/appdynamics/lib/core/logger.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/log4js/lib/appenders/loggly.js
Module not found: Error: Can't resolve 'loggly' in '.../node_modules/log4js/lib/appenders'
@ ./node_modules/log4js/lib/appenders/loggly.js 3:11-28
@ ./node_modules/log4js/lib/appenders sync ^./.*$
@ ./node_modules/log4js/lib/log4js.js
@ ./node_modules/appdynamics/lib/core/logger.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/log4js/lib/appenders/mailgun.js
Module not found: Error: Can't resolve 'mailgun-js' in '.../my-app/node_modules/log4js/lib/appenders'
@ ./node_modules/log4js/lib/appenders/mailgun.js 34:14-35
@ ./node_modules/log4js/lib/appenders sync ^./.*$
@ ./node_modules/log4js/lib/log4js.js
@ ./node_modules/appdynamics/lib/core/logger.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/log4js/lib/appenders/smtp.js
Module not found: Error: Can't resolve 'nodemailer' in '.../my-app/node_modules/log4js/lib/appenders'
@ ./node_modules/log4js/lib/appenders/smtp.js 4:13-34
@ ./node_modules/log4js/lib/appenders sync ^./.*$
@ ./node_modules/log4js/lib/log4js.js
@ ./node_modules/appdynamics/lib/core/logger.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts

ERROR in ./node_modules/log4js/lib/appenders/slack.js
Module not found: Error: Can't resolve 'slack-node' in '.../node_modules/log4js/lib/appenders'
@ ./node_modules/log4js/lib/appenders/slack.js 2:12-33
@ ./node_modules/log4js/lib/appenders sync ^./.*$
@ ./node_modules/log4js/lib/log4js.js
@ ./node_modules/appdynamics/lib/core/logger.js
@ ./node_modules/appdynamics/lib/core/agent.js
@ ./node_modules/appdynamics/index.js
@ ./server.ts


Our project is set up with:
- Webpack v4.29.0
- Node.js v11.0.0
- Appdynamics v4.5



The Appdynamics usage is at the top of our server file as:



// AppDynamics monitoring
require("appdynamics").profile(
controllerHostName: ***
controllerPort: 443,
controllerSslEnabled: true,
accountName: ****
accountAccessKey: ***
applicationName: ***
tierName: ***
nodeName: '01'
);


And our Webpack configuration is:



const path = require('path');
const webpack = require('webpack');

module.exports =
entry: server: './server.ts' ,
resolve: extensions: ['.js', '.ts'] ,
target: 'node',
// TO-DO: Enable "production" mode for going live with Universal
mode: 'development',
// this makes sure we include node_modules and other 3rd party libraries
externals: [/node_modules/],
output:
path: path.join(__dirname, 'dist'),
filename: '[name].js'
,
module:
rules: [ test: /.ts$/, loader: 'ts-loader' ]
,
plugins: [
]
;


So far we have tried downgrading the Webpack version, downgrading the Node environment to 10.15, and using other import methods for the AppDynamics package, but this seems like an issue internal to the Appdynamics library? The main question is, has anyone experienced Webpack dependency compiling issues when using the Appdynamics library? And did you find a way to work around it?



Any help or clues would be appreciated ❤️










share|improve this question






























    1















    Has anyone experienced Webpack dependency compiling issues when using the AppDynamics library? And did you find a way to work around it? I believe this is an issue stemming from their library.



    When trying to install the AppDynamics package for monitoring a Node.js/Express application, our Webpack build process is not able to import a handful of dependencies. Specifically, the errors output are:



    WARNING in ./node_modules/appdynamics/lib/core/agent.js 445:8-28
    require.main.require is not supported by webpack.
    @ ./node_modules/appdynamics/index.js 1:17-44
    @ ./server.ts

    ERROR in ./node_modules/appdynamics-zmq/lib/index.js
    Module not found: Error: Can't resolve '../zmq' in '.../my-app/node_modules/appdynamics-zmq/lib'
    @ ./node_modules/appdynamics-zmq/lib/index.js 24:10-27
    @ ./node_modules/appdynamics-zmq/index.js
    @ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
    @ ./node_modules/appdynamics/lib/libproxy/libproxy.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/appdynamics-libagent/index.js
    Module not found: Error: Can't resolve './appd_libagent' in '.../my-app/node_modules/appdynamics-libagent'
    @ ./node_modules/appdynamics-libagent/index.js 36:9-35
    @ ./node_modules/appdynamics/lib/libagent/libagent-connector.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/appdynamics-native/index.js
    Module not found: Error: Can't resolve './appdynamics' in '.../my-app/node_modules/appdynamics-native'
    @ ./node_modules/appdynamics-native/index.js 29:10-34
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/appdynamics-protobuf/index.js
    Module not found: Error: Can't resolve './protobuf_for_node' in '.../my-app/node_modules/appdynamics-protobuf'
    @ ./node_modules/appdynamics-protobuf/index.js 29:10-40
    @ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
    @ ./node_modules/appdynamics/lib/libproxy/libproxy.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/log4js/lib/appenders/hipchat.js
    Module not found: Error: Can't resolve 'hipchat-notifier' in '.../my-app/node_modules/log4js/lib/appenders'
    @ ./node_modules/log4js/lib/appenders/hipchat.js 3:14-41
    @ ./node_modules/log4js/lib/appenders sync ^./.*$
    @ ./node_modules/log4js/lib/log4js.js
    @ ./node_modules/appdynamics/lib/core/logger.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/log4js/lib/appenders/loggly.js
    Module not found: Error: Can't resolve 'loggly' in '.../node_modules/log4js/lib/appenders'
    @ ./node_modules/log4js/lib/appenders/loggly.js 3:11-28
    @ ./node_modules/log4js/lib/appenders sync ^./.*$
    @ ./node_modules/log4js/lib/log4js.js
    @ ./node_modules/appdynamics/lib/core/logger.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/log4js/lib/appenders/mailgun.js
    Module not found: Error: Can't resolve 'mailgun-js' in '.../my-app/node_modules/log4js/lib/appenders'
    @ ./node_modules/log4js/lib/appenders/mailgun.js 34:14-35
    @ ./node_modules/log4js/lib/appenders sync ^./.*$
    @ ./node_modules/log4js/lib/log4js.js
    @ ./node_modules/appdynamics/lib/core/logger.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/log4js/lib/appenders/smtp.js
    Module not found: Error: Can't resolve 'nodemailer' in '.../my-app/node_modules/log4js/lib/appenders'
    @ ./node_modules/log4js/lib/appenders/smtp.js 4:13-34
    @ ./node_modules/log4js/lib/appenders sync ^./.*$
    @ ./node_modules/log4js/lib/log4js.js
    @ ./node_modules/appdynamics/lib/core/logger.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts

    ERROR in ./node_modules/log4js/lib/appenders/slack.js
    Module not found: Error: Can't resolve 'slack-node' in '.../node_modules/log4js/lib/appenders'
    @ ./node_modules/log4js/lib/appenders/slack.js 2:12-33
    @ ./node_modules/log4js/lib/appenders sync ^./.*$
    @ ./node_modules/log4js/lib/log4js.js
    @ ./node_modules/appdynamics/lib/core/logger.js
    @ ./node_modules/appdynamics/lib/core/agent.js
    @ ./node_modules/appdynamics/index.js
    @ ./server.ts


    Our project is set up with:
    - Webpack v4.29.0
    - Node.js v11.0.0
    - Appdynamics v4.5



    The Appdynamics usage is at the top of our server file as:



    // AppDynamics monitoring
    require("appdynamics").profile(
    controllerHostName: ***
    controllerPort: 443,
    controllerSslEnabled: true,
    accountName: ****
    accountAccessKey: ***
    applicationName: ***
    tierName: ***
    nodeName: '01'
    );


    And our Webpack configuration is:



    const path = require('path');
    const webpack = require('webpack');

    module.exports =
    entry: server: './server.ts' ,
    resolve: extensions: ['.js', '.ts'] ,
    target: 'node',
    // TO-DO: Enable "production" mode for going live with Universal
    mode: 'development',
    // this makes sure we include node_modules and other 3rd party libraries
    externals: [/node_modules/],
    output:
    path: path.join(__dirname, 'dist'),
    filename: '[name].js'
    ,
    module:
    rules: [ test: /.ts$/, loader: 'ts-loader' ]
    ,
    plugins: [
    ]
    ;


    So far we have tried downgrading the Webpack version, downgrading the Node environment to 10.15, and using other import methods for the AppDynamics package, but this seems like an issue internal to the Appdynamics library? The main question is, has anyone experienced Webpack dependency compiling issues when using the Appdynamics library? And did you find a way to work around it?



    Any help or clues would be appreciated ❤️










    share|improve this question


























      1












      1








      1








      Has anyone experienced Webpack dependency compiling issues when using the AppDynamics library? And did you find a way to work around it? I believe this is an issue stemming from their library.



      When trying to install the AppDynamics package for monitoring a Node.js/Express application, our Webpack build process is not able to import a handful of dependencies. Specifically, the errors output are:



      WARNING in ./node_modules/appdynamics/lib/core/agent.js 445:8-28
      require.main.require is not supported by webpack.
      @ ./node_modules/appdynamics/index.js 1:17-44
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-zmq/lib/index.js
      Module not found: Error: Can't resolve '../zmq' in '.../my-app/node_modules/appdynamics-zmq/lib'
      @ ./node_modules/appdynamics-zmq/lib/index.js 24:10-27
      @ ./node_modules/appdynamics-zmq/index.js
      @ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
      @ ./node_modules/appdynamics/lib/libproxy/libproxy.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-libagent/index.js
      Module not found: Error: Can't resolve './appd_libagent' in '.../my-app/node_modules/appdynamics-libagent'
      @ ./node_modules/appdynamics-libagent/index.js 36:9-35
      @ ./node_modules/appdynamics/lib/libagent/libagent-connector.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-native/index.js
      Module not found: Error: Can't resolve './appdynamics' in '.../my-app/node_modules/appdynamics-native'
      @ ./node_modules/appdynamics-native/index.js 29:10-34
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-protobuf/index.js
      Module not found: Error: Can't resolve './protobuf_for_node' in '.../my-app/node_modules/appdynamics-protobuf'
      @ ./node_modules/appdynamics-protobuf/index.js 29:10-40
      @ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
      @ ./node_modules/appdynamics/lib/libproxy/libproxy.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/hipchat.js
      Module not found: Error: Can't resolve 'hipchat-notifier' in '.../my-app/node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/hipchat.js 3:14-41
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/loggly.js
      Module not found: Error: Can't resolve 'loggly' in '.../node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/loggly.js 3:11-28
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/mailgun.js
      Module not found: Error: Can't resolve 'mailgun-js' in '.../my-app/node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/mailgun.js 34:14-35
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/smtp.js
      Module not found: Error: Can't resolve 'nodemailer' in '.../my-app/node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/smtp.js 4:13-34
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/slack.js
      Module not found: Error: Can't resolve 'slack-node' in '.../node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/slack.js 2:12-33
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts


      Our project is set up with:
      - Webpack v4.29.0
      - Node.js v11.0.0
      - Appdynamics v4.5



      The Appdynamics usage is at the top of our server file as:



      // AppDynamics monitoring
      require("appdynamics").profile(
      controllerHostName: ***
      controllerPort: 443,
      controllerSslEnabled: true,
      accountName: ****
      accountAccessKey: ***
      applicationName: ***
      tierName: ***
      nodeName: '01'
      );


      And our Webpack configuration is:



      const path = require('path');
      const webpack = require('webpack');

      module.exports =
      entry: server: './server.ts' ,
      resolve: extensions: ['.js', '.ts'] ,
      target: 'node',
      // TO-DO: Enable "production" mode for going live with Universal
      mode: 'development',
      // this makes sure we include node_modules and other 3rd party libraries
      externals: [/node_modules/],
      output:
      path: path.join(__dirname, 'dist'),
      filename: '[name].js'
      ,
      module:
      rules: [ test: /.ts$/, loader: 'ts-loader' ]
      ,
      plugins: [
      ]
      ;


      So far we have tried downgrading the Webpack version, downgrading the Node environment to 10.15, and using other import methods for the AppDynamics package, but this seems like an issue internal to the Appdynamics library? The main question is, has anyone experienced Webpack dependency compiling issues when using the Appdynamics library? And did you find a way to work around it?



      Any help or clues would be appreciated ❤️










      share|improve this question
















      Has anyone experienced Webpack dependency compiling issues when using the AppDynamics library? And did you find a way to work around it? I believe this is an issue stemming from their library.



      When trying to install the AppDynamics package for monitoring a Node.js/Express application, our Webpack build process is not able to import a handful of dependencies. Specifically, the errors output are:



      WARNING in ./node_modules/appdynamics/lib/core/agent.js 445:8-28
      require.main.require is not supported by webpack.
      @ ./node_modules/appdynamics/index.js 1:17-44
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-zmq/lib/index.js
      Module not found: Error: Can't resolve '../zmq' in '.../my-app/node_modules/appdynamics-zmq/lib'
      @ ./node_modules/appdynamics-zmq/lib/index.js 24:10-27
      @ ./node_modules/appdynamics-zmq/index.js
      @ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
      @ ./node_modules/appdynamics/lib/libproxy/libproxy.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-libagent/index.js
      Module not found: Error: Can't resolve './appd_libagent' in '.../my-app/node_modules/appdynamics-libagent'
      @ ./node_modules/appdynamics-libagent/index.js 36:9-35
      @ ./node_modules/appdynamics/lib/libagent/libagent-connector.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-native/index.js
      Module not found: Error: Can't resolve './appdynamics' in '.../my-app/node_modules/appdynamics-native'
      @ ./node_modules/appdynamics-native/index.js 29:10-34
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/appdynamics-protobuf/index.js
      Module not found: Error: Can't resolve './protobuf_for_node' in '.../my-app/node_modules/appdynamics-protobuf'
      @ ./node_modules/appdynamics-protobuf/index.js 29:10-40
      @ ./node_modules/appdynamics/lib/libproxy/proxy-transport.js
      @ ./node_modules/appdynamics/lib/libproxy/libproxy.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/hipchat.js
      Module not found: Error: Can't resolve 'hipchat-notifier' in '.../my-app/node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/hipchat.js 3:14-41
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/loggly.js
      Module not found: Error: Can't resolve 'loggly' in '.../node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/loggly.js 3:11-28
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/mailgun.js
      Module not found: Error: Can't resolve 'mailgun-js' in '.../my-app/node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/mailgun.js 34:14-35
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/smtp.js
      Module not found: Error: Can't resolve 'nodemailer' in '.../my-app/node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/smtp.js 4:13-34
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts

      ERROR in ./node_modules/log4js/lib/appenders/slack.js
      Module not found: Error: Can't resolve 'slack-node' in '.../node_modules/log4js/lib/appenders'
      @ ./node_modules/log4js/lib/appenders/slack.js 2:12-33
      @ ./node_modules/log4js/lib/appenders sync ^./.*$
      @ ./node_modules/log4js/lib/log4js.js
      @ ./node_modules/appdynamics/lib/core/logger.js
      @ ./node_modules/appdynamics/lib/core/agent.js
      @ ./node_modules/appdynamics/index.js
      @ ./server.ts


      Our project is set up with:
      - Webpack v4.29.0
      - Node.js v11.0.0
      - Appdynamics v4.5



      The Appdynamics usage is at the top of our server file as:



      // AppDynamics monitoring
      require("appdynamics").profile(
      controllerHostName: ***
      controllerPort: 443,
      controllerSslEnabled: true,
      accountName: ****
      accountAccessKey: ***
      applicationName: ***
      tierName: ***
      nodeName: '01'
      );


      And our Webpack configuration is:



      const path = require('path');
      const webpack = require('webpack');

      module.exports =
      entry: server: './server.ts' ,
      resolve: extensions: ['.js', '.ts'] ,
      target: 'node',
      // TO-DO: Enable "production" mode for going live with Universal
      mode: 'development',
      // this makes sure we include node_modules and other 3rd party libraries
      externals: [/node_modules/],
      output:
      path: path.join(__dirname, 'dist'),
      filename: '[name].js'
      ,
      module:
      rules: [ test: /.ts$/, loader: 'ts-loader' ]
      ,
      plugins: [
      ]
      ;


      So far we have tried downgrading the Webpack version, downgrading the Node environment to 10.15, and using other import methods for the AppDynamics package, but this seems like an issue internal to the Appdynamics library? The main question is, has anyone experienced Webpack dependency compiling issues when using the Appdynamics library? And did you find a way to work around it?



      Any help or clues would be appreciated ❤️







      node.js webpack appdynamics






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 8 at 16:13







      Cody P

















      asked Mar 7 at 16:08









      Cody PCody P

      3615




      3615






















          1 Answer
          1






          active

          oldest

          votes


















          0














          The solution was adding "appdynamics" to the "externals" in the Webpack configuration: https://webpack.js.org/configuration/externals/



          This allows AppDynamics to use the default Node.js require import.






          share|improve this answer























            Your Answer






            StackExchange.ifUsing("editor", function ()
            StackExchange.using("externalEditor", function ()
            StackExchange.using("snippets", function ()
            StackExchange.snippets.init();
            );
            );
            , "code-snippets");

            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "1"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55048208%2fappdynamics-node-js-express-dependencies-broken-compiling-with-webpack-can-an%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            The solution was adding "appdynamics" to the "externals" in the Webpack configuration: https://webpack.js.org/configuration/externals/



            This allows AppDynamics to use the default Node.js require import.






            share|improve this answer



























              0














              The solution was adding "appdynamics" to the "externals" in the Webpack configuration: https://webpack.js.org/configuration/externals/



              This allows AppDynamics to use the default Node.js require import.






              share|improve this answer

























                0












                0








                0







                The solution was adding "appdynamics" to the "externals" in the Webpack configuration: https://webpack.js.org/configuration/externals/



                This allows AppDynamics to use the default Node.js require import.






                share|improve this answer













                The solution was adding "appdynamics" to the "externals" in the Webpack configuration: https://webpack.js.org/configuration/externals/



                This allows AppDynamics to use the default Node.js require import.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 13 at 20:07









                Cody PCody P

                3615




                3615





























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Stack Overflow!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55048208%2fappdynamics-node-js-express-dependencies-broken-compiling-with-webpack-can-an%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Save data to MySQL database using ExtJS and PHP [closed]2019 Community Moderator ElectionHow can I prevent SQL injection in PHP?Which MySQL data type to use for storing boolean valuesPHP: Delete an element from an arrayHow do I connect to a MySQL Database in Python?Should I use the datetime or timestamp data type in MySQL?How to get a list of MySQL user accountsHow Do You Parse and Process HTML/XML in PHP?Reference — What does this symbol mean in PHP?How does PHP 'foreach' actually work?Why shouldn't I use mysql_* functions in PHP?

                    Compiling GNU Global with universal-ctags support Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Data science time! April 2019 and salary with experience The Ask Question Wizard is Live!Tags for Emacs: Relationship between etags, ebrowse, cscope, GNU Global and exuberant ctagsVim and Ctags tips and trickscscope or ctags why choose one over the other?scons and ctagsctags cannot open option file “.ctags”Adding tag scopes in universal-ctagsShould I use Universal-ctags?Universal ctags on WindowsHow do I install GNU Global with universal ctags support using Homebrew?Universal ctags with emacsHow to highlight ctags generated by Universal Ctags in Vim?

                    Add ONERROR event to image from jsp tldHow to add an image to a JPanel?Saving image from PHP URLHTML img scalingCheck if an image is loaded (no errors) with jQueryHow to force an <img> to take up width, even if the image is not loadedHow do I populate hidden form field with a value set in Spring ControllerStyling Raw elements Generated from JSP tagds with Jquery MobileLimit resizing of images with explicitly set width and height attributeserror TLD use in a jsp fileJsp tld files cannot be resolved