Skip to content

Error on npm start calculator example #61

@ivanjeremic

Description

@ivanjeremic

I cloned the examples followed everything I need (CMake & so on..)

I expected the app after successful install to start the Calculator but I got this error


> calculator@1.0.0 start d:\Development\Node\node-gui-examples\examples-master\react-nodegui\calculator
> tsc && qode dist/index.js

node_modules/@nodegui/nodegui/dist/lib/QtWidgets/QMainWindow.d.ts:161:9 - error TS1086: An accessor cannot be declared in an ambient context.

161     get layout(): NodeLayout | undefined;
            ~~~~~~

test/nodegui-starter/src/index.ts:45:2 - error TS2304: Cannot find name 'global'.

45 (global as any).win = win;
    ~~~~~~


Found 2 errors.

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions