• 1400/10/26

استفاده از jasonwebtoken :

سلام استاد این مشکل توی استفاده هست چیکار باید بکنم هرچی گوگل کردم به نتیجه نرسید!!!!!


 

ERROR in ./node_modules/buffer-equal-constant-time/index.js 4:13-37

 

Module not found: Error: Can't resolve 'buffer' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\buffer-equal-constant-time' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }' - install 'buffer' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "buffer": false }



 

ERROR in ./node_modules/jwa/index.js 5:13-30

 

Module not found: Error: Can't resolve 'crypto' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jwa' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "crypto": require.resolve("crypto-browserify") }' - install 'crypto-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "crypto": false }



 

ERROR in ./node_modules/jwa/index.js 9:11-26

 

Module not found: Error: Can't resolve 'util' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jwa' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }



 

ERROR in ./node_modules/jws/lib/data-stream.js 4:13-30

 

Module not found: Error: Can't resolve 'stream' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false }



 

ERROR in ./node_modules/jws/lib/data-stream.js 6:11-26

 

Module not found: Error: Can't resolve 'util' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }



 

ERROR in ./node_modules/jws/lib/sign-stream.js 8:13-30

 

Module not found: Error: Can't resolve 'stream' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false }



 

ERROR in ./node_modules/jws/lib/sign-stream.js 12:11-26

 

Module not found: Error: Can't resolve 'util' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }



 

ERROR in ./node_modules/jws/lib/tostring.js 2:13-37

 

Module not found: Error: Can't resolve 'buffer' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }' - install 'buffer' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "buffer": false }



 

ERROR in ./node_modules/jws/lib/verify-stream.js 8:13-30

 

Module not found: Error: Can't resolve 'stream' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "stream": require.resolve("stream-browserify") }' - install 'stream-browserify' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "stream": false }



 

ERROR in ./node_modules/jws/lib/verify-stream.js 12:11-26

 

Module not found: Error: Can't resolve 'util' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\jws\lib' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "util": require.resolve("util/") }' - install 'util' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "util": false }



 

ERROR in ./node_modules/safe-buffer/index.js 2:13-30

 

Module not found: Error: Can't resolve 'buffer' in 'E:\JsTestProject\Reactjs\toplearn\node_modules\safe-buffer' BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case. Verify if you need this module and configure a polyfill for it. If you want to include a polyfill, you need to: - add a fallback 'resolve.fallback: { "buffer": require.resolve("buffer/") }' - install 'buffer' If you don't want to include a polyfill, you can use an empty module like this: resolve.fallback: { "buffer": false }

  • 1400/10/28
  • ساعت 19:10

سلام دوست من من هم به این مسئله بر  خوردم مسئله را از تمام روش های موجود دنبال کردم تا خطای سیستمی را رفع کنم ولی نتوانستم همه را رفع کنم بعد از این پکیج به جای آن پکیج استفاده کردم برای دی کد کردن توکن

https://www.npmjs.com/package/jwt-decode


  • 1400/10/28
  • ساعت 21:08

سلام دوست من

چه زمانی این خطا رو دریافت میکنید؟

توضیحات بیشتر و نمونه کدهای نوشته شده رو جهت بررسی قرار بدید


  • 1400/10/29
  • ساعت 10:26

سلام مجدد استاد و همکلاسی عزیز

 زمانی که از jsonwebtoken برای decode کردن استفاده میکنم این خطارو میگیرم دقیقا زمانی که میخوام jwt را از jsonwebtoken ایمپورت کنم 


  • 1400/11/04
  • ساعت 21:38

همانطوری که دوستمون بالا گفتن از jwt-decode استفاده کن


  • 1400/11/05
  • ساعت 17:12

سلام من هم به این اررور برخورد کردم بعد خوندین چندین متن و تاریخ اون ها فهمیدم که این باگ 3 4 هفته هست که به وجود اومده و خیلی ها به facebook report  دادنه. این مشکل در عدم باندل کردن بافر موجود در jwt هست.کافی هست فقط jwt رو import کنی تا به این error برخورد کنی.


  • 1400/11/14
  • ساعت 16:24

سلام خدمت استاد و دوستان من هم بعد نصب jwt این ارور ها رو دارم و بعدش jwt-decode رو نصب کردم باز هم شبیه همون ارور را میده کسی به نتیجه ای رسیده راهنمایی کنه؟


  • 1400/11/14
  • ساعت 17:17

من با نصب پکیج jwt-decode  مشکل ارور م حل شد 

ارور بعدی داخل خود کد استاد بود که احتمالا بخاطر گذشت زمان تغییرات ایجاد شده من با حذف کلمه payload از خطوط کد ها مشکلم حل شد امیدارم مفید باشه براتون

 کدش هم میزارم

 

 


  • 1400/11/14
  • ساعت 17:20

  • 1400/11/14
  • ساعت 17:21

استاد اگه درست لطفا تایید کنید برای من که داره کار میکنه 


  • 1400/11/15
  • ساعت 00:01

اگر کار میکنه مشکلی نخواهد داشت


logo-enamadlogo-samandehi