Skip to content

TypeError: window.require is not a function #72

@wptinger

Description

@wptinger

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions