question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working on Windows

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
irustmcommented, Jan 1, 2020

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)

 get layout(): NodeLayout | undefined;

and then try npm run start

0reactions
setrarcommented, Dec 12, 2020
node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QMainWindow.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context.

I have found a solution

microsoft/TypeScript#33939

You must remove this line in node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QMainWindow.d.ts(162,9)

 get layout(): NodeLayout | undefined;

and then try npm run start

Same trick on macOS Big Sur ver 11.0.1

removed the line get layout(): NodeLayout<any> | undefined;

node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QMainWindow.d.ts(17,9): error TS1086: An accessor cannot be declared in an ambient context.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found