uraway / electron-oauth-github

I do not recommend using this library for OAuth authentication due to security issues. Please use a backend API to keep your access key secret or Auth0 integration.
https://www.npmjs.com/package/electron-oauth-github
16 stars 2 forks source link

Uncaught Error: Cannot find module 'assert' #19

Open noob9527 opened 4 years ago

noob9527 commented 4 years ago

version 2.1.2 node version 13.0.1 yarn version 1.19.1

index.js:55 Uncaught Error: Cannot find module 'assert'
    at webpackEmptyContext (lib sync:2)
    at f (index.js:15)
    at p (index.js:30)
    at Object.push../node_modules/electron-oauth-github/lib/index.js.parcelRequire.QCba (index.js:71)
    at f (index.js:24)
    at push../node_modules/electron-oauth-github/lib/index.js.parcelRequire.QCba (index.js:43)
    at Object../node_modules/electron-oauth-github/lib/index.js (index.js:57)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (search-page.tsx:125)
    at Module../src/browser/pages/search/tool-bar/avatar-drop-down.tsx (avatar-drop-down.tsx:45)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (search-tool-bar-model.ts:69)
    at Module../src/browser/pages/search/tool-bar/search-tool-bar.tsx (search-tool-bar.tsx:140)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (search-model.ts:145)
    at Module../src/browser/pages/search/search-page.tsx (search-page.tsx:125)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (models.ts:13)
    at Module../src/browser/pages/page-router.tsx (page-router.tsx:23)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (root-model.ts:33)
    at Module../src/browser/pages/root.component.tsx (root.component.tsx:8)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (use-previous.ts:4)
    at Module../src/browser/index.ts (index.ts:21)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Module.<anonymous> (window-constants.ts:8)
    at Module../src/electron-renderer/index.ts (index.ts:5)
    at __webpack_require__ (bootstrap:781)
    at fn (bootstrap:149)
    at Object.0 (store.ts:4)
    at __webpack_require__ (bootstrap:781)
    at checkDeferredModules (bootstrap:45)
    at Array.webpackJsonpCallback [as push] (bootstrap:32)
    at main.chunk.js:1
matrunchyk commented 3 years ago

Same to me. Any ideas on how to fix it?