Svelte-Starter | Starter Kit | Svelte | Frontend Framework library
kandi X-RAY | Svelte-Starter Summary
kandi X-RAY | Svelte-Starter Summary
:icecream: A boilerplate for Svelte, Tailwind, Iconify, Babel, and PostCSS.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Represents the environment .
- Matches a call to a sleep function .
- Wrap a function to return a promise .
Svelte-Starter Key Features
Svelte-Starter Examples and Code Snippets
Community Discussions
Trending Discussions on Svelte-Starter
QUESTION
Upgrading to Electron 14 → 15 introduces the following TypeScript build error for my main process.
error TS2749: 'webContents' refers to a value, but is being used as a type here. Did you mean 'typeof webContents'?
The delcarations in the code are
...ANSWER
Answered 2021-Oct-11 at 19:53I'm guessing this API underwent some changes in the latest version. But at least as of version 15, you aren't using this API correctly.
According to the docs the value you get from the webContents
module, has these methods.
And the instances of WebContents
that come from BrowserWindow
s have these methods
These are completely different values and types.
Playground here that illustrates the difference.
You probably want the webContents
that comes from BrowserWindow
. In which those appear to be instances of the WebContents
(note the capital W
) class which you can import and use as you expect.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Svelte-Starter
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page