Conversation
|
Test failed. Please recheck. |
|
Please review. |
kezhenxu94
left a comment
There was a problem hiding this comment.
LGTM, @tom-pytel can you please do another round review?
|
@kezhenxu94 @tianyk when i start local server, it will throw an error 'Error installing plugin mysql 2 *', i used version skywalking-nodejs 0.3.0 |
Isn't this a mysql2 plugin? |
Yep, our team met this err in the same version. |
|
There is no 3.0, I don't know what do you mean? https://www.npmjs.com/package/mysql2 2.2.5 is the latest release. |
sorry i mean skywalking-nodejs 0.3.0 version. |
This is open source project, you simply debug directly. I don't know what do you mean. |
Still not found the solution, But we can do something in https://github.com/apache/skywalking-nodejs/blob/master/src/core/PluginInstaller.ts#L48 |
Yep, try to solve it, but the problem is existed, we need try to fix it together. |
|
@riskgod can you print the error in skywalking-nodejs/src/core/PluginInstaller.ts Line 109 in babf6eb |
'Error installing plugin mysql 2 *' |
|
I think you don't understand how to report a potential bug in an open source project and how to help the maintainer to locate it, only providing a error message helps nothing, you don't have a reproducible demo project, nor did you show the Efforts you've made to debug the problem, we are powerless to waste our time to debug this problem as we don't even know whether it's a bug or not because you gave no useful reproducible steps. This plugin is run in our tests with a typical scenario and it passed, if your scenario is different with it you have to provide your scenario in more details, otherwise we are not able to do anything. We've been asking for more details but you always paste the same error logs, this is a waste of time and useless communication.
If you still want to help, try to print the skywalking-nodejs/src/core/PluginInstaller.ts Lines 107 to 113 in babf6eb Something like this } catch (e) {
if (plugin) {
logger.error(`Error installing plugin ${plugin.module} ${plugin.versions}`, e); // <<===== 👈
} else {
logger.error(`Error processing plugin ${pluginFile}`);
}
}... to see why the plugin is not installed successfully. |
yep, found the problem. the mysql2 plugin use exports in package.json. not export commonjs in here, like this: |
Add mysql2 plugin