zxz9325 commented on issue #6224:
URL: https://github.com/apache/skywalking/issues/6224#issuecomment-763369708


   I saw the new feature of ClientJS-0.3.0 according to the test example 
provided by the running official 
[(skywalking-client-test),](https://github.com/SkyAPMTest/skywalking-client-test)
 but after we introduced ClientJS-0.3.0 to our company's front-end project, we 
kept reporting errors, and would not automatically send HTTP requests 
(**v3/segments**). Before, ClientJS-0.2.0 did not report errors, our project 
was the framework of React, and the error message was :**Uncaught 
TypeError:First argument must be a string, Buffer, Array, or array-like 
object.**
   Here's the code we added:
   `import ClientMonitor from "skywalking-client-js";`
     `ClientMonitor.register({`
       `The collector: "/cfv2",`
       `Service: "cfv2-UI",`
       `ServiceVersion: "1.0.0".`
       `PagePath: "test.html",`
       `UseFmp: true,`
       `DetailMode: true`
     `});`


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to