chabok-io / chabok-client-js

Chabok Push Javascript SDK
https://webpush.chabokpush.com
MIT License
3 stars 1 forks source link

warn in chabokServiceWorker #2

Open shahramRezvani opened 4 years ago

shahramRezvani commented 4 years ago

Failed to compile ./src/ChabokSDKWorker.js Line 2:1: Expected an assignment or function call and instead saw an expression no-unused-expressions Line 2:112: 'define' is not defined no-undef Line 2:123: 'define' is not defined no-undef Line 2:235: Unexpected use of 'self' no-restricted-globals Line 2:240: Unexpected use of 'self' no-restricted-globals Line 2:770: Expected an assignment or function call and instead saw an expression no-unused-expressions Line 2:770: Unexpected use of 'self' no-restricted-globals Line 2:875: Unexpected use of 'self' no-restricted-globals Line 2:959: Expected an assignment or function call and instead saw an expression no-unused-expressions Line 2:1091: Unexpected use of 'self' no-restricted-globals Line 2:1227: Unexpected use of 'self' no-restricted-globals Line 2:1286: Unexpected use of 'self' no-restricted-globals Line 2:1363: Unexpected use of 'self' no-restricted-globals Line 2:1484: Unexpected use of 'self' no-restricted-globals Line 2:1614: Unexpected use of 'self' no-restricted-globals Line 2:1906: Expected an assignment or function call and instead saw an expression no-unused-expressions Line 2:2049: Unexpected use of 'self' no-restricted-globals Line 2:2210: Unexpected use of 'self' no-restricted-globals Line 2:2235: Unexpected use of 'self' no-restricted-globals Line 2:2316: Expected an assignment or function call and instead saw an expression no-unused-expressions Line 2:2497: Unexpected use of 'self' no-restricted-globals Line 2:2734: Expected an assignment or function call and instead saw an expression no-unused-expressions

Search for the keywords to learn more about each error.

farbod-s commented 4 years ago
سلام
از خطاها بنظر میاد راه‌اندازی بدرستی انجام نشده.
لطفا مراحل راه‌اندازی رو یک بار مرور کنید و همینطور پروژه نمونه رو هم نگاه کنید. اگر مشکل حل نشد بگید تا مراحل راه‌اندازی رو بررسی کنیم.
حتما از آخرین نسخه چابک استفاده کنید و اینکه اگر از تکنولوژی خاصی برای وب استفاده می‌کنید ذکر کنید تا بررسی کنیم چابک حتما سازگاری داشته باشه.
ممنون
shahramRezvani commented 4 years ago

من طبق مستندات پیش رفتم و از ری اکت جی اس استفاده میکنم و در حال حاظر پوش به درستی راه اندازی شده و وقتی پوش ارسال میکنم در بخش بک اند وقتی کنسول لاگ میگیرم پیام نمایش داده میشه ولی وقتی سرویس ورکر رو اضافه میکنم خطا میگیرم

shahramRezvani commented 4 years ago

وقتی از داخل پنل پیام ارسال میکنم داخل اپ به صورت کنسول لاگ دریافت میشه اما پوش دریافت نمیکنم