bdTechies / book-manager

A simple personal library management application.
https://book-manager.bdtechies.com/
MIT License
55 stars 9 forks source link

TypeError: window.require is not a function #72

Open wptinger opened 2 years ago

wptinger commented 2 years ago

Hello,

I have just installed book-manager, and when I pull it up in the browser, I receive the following: `TypeError: window.require is not a function ./src/actions/book-actions.js src/actions/book-actions.js:36 33 | RESET_ALL_BOOKS, 34 | RESET_ALL_NOTES, 35 | } from './types';

36 | const electron = window.require('electron'); 37 | const { ipcRenderer } = electron; 38 | 39 | export function initMainProcessListeners() { View compiled ▶ 2 stack frames were collapsed. ./src/actions/index.js src/actions/index.js:1 1 | import as bookActions from './book-actions'; 2 | import as appControlActions from './app-control-actions'; 3 | 4 | export { bookActions, appControlActions }; View compiled ▶ 5 stack frames were collapsed. ./src/ui/components/index.js src/ui/components/index.js:1 1 | import MainMenu from './main-menu'; 2 | import ControlMenu from './control-menu'; 3 | import TopMenuBar from './top-menu-bar'; 4 | import WelcomePageMenu from './welcome-page-menu'; View compiled ▶ 5 stack frames were collapsed. ./src/ui/pages/index.js src/ui/pages/index.js:1 1 | import WelcomePage from './welcome-page'; 2 | import AllBooksPage from './all-books-page'; 3 | import SingleBookPage from './single-book-page'; 4 | import AddNewBookPage from './add-new-book-page'; View compiled ▶ 15 stack frames were collapsed. This screen is visible only in development. It will not appear if the app crashes in production. Open your browser’s developer console to further inspect this error.`

Can someone please help me?

sh4hids commented 2 years ago

Hi @gingersnapglitch. Thanks for reporting the issue. It has been a long time since I worked on this project. I believe this will take considerable refactoring to make this project active again. I'll try to refactor it whenever I have time and let you know.