DEV Community


Discussion on: Creating a text editor in Electron: part 3 - Setting Preferences

vmars316 profile image

Hello & Thanks;
This Tutorial is far too advanced for me , But I downloaded it and ran it anyways .
I get the following errors:

What I really need is a Tutorial on 'How to create a webBrowser using BrowserWindow & BrowserView' , Not 'webview' .

There are gazillions of tutorials on webview , but none on using BrowserView . Any one know of one or are willing to create such a Tutorial ?

vmars316 profile image

Oops , turns out cant upload images , I'll try to OCR it :
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Cannot find module ' electron'
Require stack:
C:\Electron-js\Texty Editor-Tutorial\Collect-All-Source\main.js
C:\Users\vmars\AppData\Roaming\npm\node modules\electron\dist\resources\def...\main.js
at Module. resolveFilename (internal/modules/cjs/loader.js:961:15)
at Function.o._resolveFilename (electron/js2c/browser_init.js:257:921)
at Module._load (internal/modules/cjs/loader.js:844:27)
at Function.Module._load (electron/js2c/asar.js:769:28)
at Module.require (internal/modules/cjs/loader.js: 1023: 1 9)
at require (internal/modules/cjs/helpers.js:77:18)
at Object.
(C:\Electron-js\Texty Editor-Tutorial\Collect-All-Source\main.js:2:47)
at Module. compile (internal/modules/cjs/loader.js:1145:30)
at Object.Module. extensions..js (internal/modules/cjs/loader.js:1166: 10)
at Module.load (internal/modules/cjs/loader.js:981 :32)

Forem Open with the Forem app