Troubleshooting#
Credentials#
Error message: 'Credentials of type "*" aren't known'#
ตรวจสอบว่า ชื่อใน credentials array ตรงกับชื่อที่ใช้ใน property name ของ credentials class หรือไม่
Editor UI#
Error message: 'There was a problem loading init data: API-Server can not be reached. It's probably down'#
- ตรวจสอบว่าชื่อไฟล์ node, โฟลเดอร์ node และชื่อ class ตรงกับ path ที่เพิ่มใน
packages/nodes-base/package.json
- ตรวจสอบว่าชื่อที่ใช้ใน property
displayOptions
ตรงกับชื่อที่ใช้ใน UI elements ของ node
Node icon doesn't show up in the Add Node menu and the Editor UI#
- ตรวจสอบว่า icon อยู่ในโฟลเดอร์เดียวกับ node
- ตรวจสอบว่าเป็นไฟล์ PNG หรือ SVG
- เวลาอ้างอิงไฟล์ icon ใน property
icon
ให้ใส่นามสกุลไฟล์ (.png
หรือ.svg
) และเติมfile:
ข้างหน้า เช่นfile:friendGrid.png
หรือfile:friendGrid.svg
Node icon doesn't fit#
- ถ้าใช้ไฟล์ SVG ให้แน่ใจว่า canvas เป็นสี่เหลี่ยมจัตุรัส ดูวิธีปรับขนาด canvas ของ SVG ด้วย GIMP ที่นี่
- ถ้าใช้ PNG ให้แน่ใจว่าขนาด 60x60 พิกเซล
Node doesn't show up in the Add Node menu#
ตรวจสอบว่าคุณได้ register node ในไฟล์ package.json
ของโปรเจกต์แล้ว
Changes to the description properties don't show in the UI on refreshing#
ทุกครั้งที่เปลี่ยน description properties ต้องหยุด process n8n ที่รันอยู่ (ctrl
+ c
) แล้วรันใหม่ อาจต้องรัน npm link
ใหม่ด้วย
Linter incorrectly warning about file name case#
node linter มีกฎเกี่ยวกับชื่อไฟล์ รวมถึงรูปแบบตัวพิมพ์ (case) ผู้ใช้ Windows อาจเจอปัญหาเวลา rename ไฟล์แล้ว linter ยังแจ้งเตือนเหมือนเดิม ทั้งที่ rename แล้ว สาเหตุเพราะ ปัญหาใน Windows เวลาตั้งชื่อไฟล์ใหม่แค่เปลี่ยน case