Lỗi phân đoạn khi kết nối serialport nodejs
Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them! Show Go to https://serialport.io/ to learn more, find guides and api documentation. Quick Links
DevelopingDeveloping node serialport projects
Developing DocsSee https://github.com/serialport/website LicenseSerialPort packages are all MIT licensed and all it's dependencies are MIT licensed. Code of ConductSerialPort follows the Nodebots Code of Conduct. While the code is MIT licensed participation in the community has some rules to make this a good place to work and learn. TLDR
Governance and CommunitySerialPort is currently employees a governance with a group of maintainers, committers and contributors, all fixing bugs and adding features and improving documentation. You need not apply to work on SerialPort, all are welcome to join, build, and maintain this project.
If you have a PR that improves the project people in any or all of the above people will help you land it. Maintainers
ContributorsThis project exists thanks to all the people who contribute. [Contribute]. BackersThank you to all our backers! 🙏 [] SponsorsSupport this project by becoming a sponsor. Your logo will show up here with a link to your website. [] I need help, I want to exchange information via serialport between Arduino Pro mini with a distance sensor and a local website (e.g. provide information about the end of the session and its beginning) I use Windows 11, node.js with the 'serialport' library (installed locally and globally) , I installed everything a few days ago, because I'm just starting my adventure with it) and of course Arduino with its C++... I've reached the point of connecting via the serial port (now Arduino is on the COM3 port, which I can see in the Arduino IDE and Device Manager), but still I get the error message: "TypeError: SerialPort is not a constructor"... The code of my app.js file (node.js version: v18.17.1, globally [C:\Users\ja\AppData\Roaming\npm] serialport version is: ` [email protected], and locally also: [email protected]):
My website (lokal) index.html:
Here are the local directories of my project: (images)enter image description here and in the node_modules directory: enter image description here Please help me remove the error and connect. |