Not working on Windows
See original GitHub issueI am very excited to find this project. However, I got the following error when trying to run it. Any idea what is causing this?
I am using Windows 10 with Node v12.13.1, Visual Studio 2019, and cmake v3.16.2.
PS D:\temp\angular-nodegui> npm start
> angular-nodegui@0.0.0 start D:\temp\angular-nodegui
> npm run build-dev && qode ./dist/src/main.js
> angular-nodegui@0.0.0 build-dev D:\temp\angular-nodegui
> ngc -p tsconfig.app.json
node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QMainWindow.d.ts(162,9): error TS1086: An accessor cannot be declared in an ambient context.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-nodegui@0.0.0 build-dev: `ngc -p tsconfig.app.json`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-nodegui@0.0.0 build-dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Foo\AppData\Roaming\npm-cache\_logs\2019-12-25T02_08_52_041Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! angular-nodegui@0.0.0 start: `npm run build-dev && qode ./dist/src/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-nodegui@0.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Foo\AppData\Roaming\npm-cache\_logs\2019-12-25T02_08_52_130Z-debug.log
PS D:\temp\angular-nodegui>
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
[Solved] Windows 10 Not Responding | Quickly & Easily
How to Fix Windows 10 not responding · Restart your computer · Troubleshoot your computer · Update available drivers · Run System File...
Read more >Fix problems with the Start menu - Microsoft Support
Fix problems with the Start menu · Show a hidden taskbar · Check for updates · Restart your device · Update drivers ·...
Read more >What You Should Do If Windows Fails to Start
The quickest way to get to Startup Repair is to hard-power-down your PC while it's booting three times. You normally do this by...
Read more >Windows 10 Troubleshooting: The Most Common Problems ...
Check your Windows 10 device. Make sure airplane mode is turned off (Start > Settings > Network & Internet > Airplane mode). Try...
Read more >Is the Windows Start Button Not Working? Here's How to Fix It
Is the Windows Start Button Not Working? Here's How to Fix It · 1. Update Windows · 2. Sign Out of Your User...
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 Free
Top 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
I have found a solution
https://github.com/microsoft/TypeScript/issues/33939
You must remove this line in node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QMainWindow.d.ts(162,9)
and then try
npm run start
Same trick on macOS Big Sur ver 11.0.1
removed the line
get layout(): NodeLayout<any> | undefined;