-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find module 'diagnostic-channel' #256
Comments
Thanks for reporting this! What versions of Node and NPM are you using? Are you using any libraries that give you an alternative package loader? |
I am using Node v6.10.1 and NPM v3.10.10. |
Just to verify, you have applicationinsights in your project.json file and used
Thanks! |
I installed it use the npm package manager gui in Visual Studio. It is listed in my package.json file. My node_modules structure:
|
Can you please double check that there is a |
Yes, I have both files. |
I'm noticing that your installation is in |
Yes, I am getting the error when trying to access my development/test site. It will work locally. |
Thanks! It sounds like this might be a permissions or deployment problem. Can you verify that the diagnostic-channel folder on your server has permissions to be read by the user account that runs the service? It might also be worthwhile to check that the files are deployed correctly in the first place. If this is an Azure App Service you can quickly check this with the App Service Editor |
I didn't see any issues there. My site is getting ready to go live very soon so I had to reinstall applicationinsights at a lower version. Thanks for your help! |
I've validated this is working on a clean VS2017 nodejs project, with applicationinsights installed using the VS NPM tooling, and published to an azure app service. Closing for now. Please feel free to re-open if you run into this again! |
I've just had the problem occur updating an AWS Lambda with the ApplicationInsights version changed from
|
@martincostello this package is a new dependency of Application Insights SDK. Make sure your function is configured correctly and this package can be downloaded |
We've encountered the same issue and it turned out that due to our build process, the |
@MSLaguana the |
I have no objection to that; @mike-kaufman / @jackhorton, we can fix this before our next release unless you feel strongly otherwise. |
Hmmm... not following why the dot would impact things. Is this just a guess or do we understand why the dot in the name is interfering? |
We have this specific example above in grunt omitting it by default, and the initial example was a case where it worked locally but the folder failed to deploy to the server. The second example, without further investigation, seems to be a lot like the first. The suspicion is tooling designed to ignore dotfolders (usually always right, don't need to deploy .git, .vscode, etc) |
I think the change is fine. The dot doesn't add much for me, and we were already planning to do a new release soon to publishers to add some new modules. |
OK, sounds good. |
We had a similar issue where older nuget (3.x) versions would omit the |
I'm not sure this is okay to close until we depend on a newer version of diagnostic-channel |
Yes, didn't intend to close. |
* Updated diagnostic-channel, added subscribers for winston and pg fixes #256 * Updated README.md
Hi @OsvaldoRosado @AlexBulankou I just encountered this issue with Node v6.9.4, npm v3.10.10, and applicationinsights v1.0.1. My app is running locally, so it can't be a permissions/deploy problem. This is the error message:
This is my npm node module structure:
The Any ideas? UPDATE: |
Hi folks - I'm having this same issue following the instructions here: https://docs.microsoft.com/en-us/azure/azure-monitor/learn/nodejs-quick-start Can someone advise? I have a Node app with both client and server. Each have a package.json. I tried installing applicationinsights-js as well but still get the same issue above. Can someone help please? |
I am trying to add application insights to my node/express app. I have applicationinsights v0.20.0 installed and now I am getting this error and my app will not run. I do see the 'diagnostic-channel' folder in that directory so I am not sure why it says it cannot locate it. On previous projects, I did not have this 'diagnostic-channel' when using app insights. Any thoughts?
The text was updated successfully, but these errors were encountered: