window.require is not a function
See original GitHub issueAfter updating the package from 1.4.0 to 1.5.1 I get the error window.require is not a function
.
Haven’t changed anything in my code.
Windows 10 Electron 8.2.4 Typescript 3.8.2
I just use TSC to compile to Javascript, not using Webpack or anything.
Looks like this commit is the culprit: https://github.com/hardchor/electron-redux/commit/a1ba87b107e36cfb0004ae0c5f5f07720d23e92b
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
TypeError: window.require is not a function - Stack Overflow
Im trying to build an electron app and want to use window.require. Unfortunately the compiler says "TypeError: ...
Read more >Solved window.require is not a function in Electron app - AWSM
I got this error when I recently tried to upgrade my Calculator which is developed in electron few years ago.
Read more >Uncaught TypeError: window.require is not a function : r/sveltejs
I have been trying to build a web app with Svelte. However, when I try to require the fs module with window. require("fs")...
Read more >Uncaught TypeError: window.require is not a function · Issue #62
I just cloned the repo, rolled back to Node 12.18.3, and ran npm rebuild . But when I run npm start I get...
Read more >TypeError: require(...) is not a function in Node.js | bobbyhadz
To solve the "TypeError: require(...) is not a function", make sure to place a semicolon between your require call and an immediately invoked...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Appreciate, just want to find a solution that works for everyone
Can give it a try later to see what happens, but it wouldn’t be a safe solution 😔