Skip to content

"Cannot find namespace 'NodeJS'" and Module '"../../node_modules/react-dnd-html5-backend/lib"' has no exported member 'default'. #613

Description

@JoeDictionary

When following the docs installation guide I get these errors:

ERROR in ./src/app/app.module.ts 19:48-60
"export 'default' (imported as 'HTML5Backend') was not found in 'react-dnd-html5-backend'

ERROR in ./src/app/app.module.ts 32:56-68
"export 'default' (imported as 'HTML5Backend') was not found in 'react-dnd-html5-backend'
    
    ERROR in node_modules/zone.js/dist/zone.js.d.ts:600:21 - error TS2503: Cannot find namespace 'NodeJS'.
    
    600 declare var global: NodeJS.Global;
                            ~~~~~~
    src/app/app.module.ts:10:10 - error TS2305: Module '"../../node_modules/react-dnd-html5-backend/lib"' has no exported member 'default'.
    
    10 import { default as HTML5Backend } from 'react-dnd-html5-backend';

What am I doing wrong?

Angular version:

Angular CLI: 10.1.2
Node: 10.16.3
OS: win32 x64

Angular: 10.1.2
... animations, cli, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1001.2
@angular-devkit/build-angular   0.1001.2
@angular-devkit/core            10.1.2
@angular-devkit/schematics      10.1.2
@angular/cdk                    10.2.2
@schematics/angular             10.1.2
@schematics/update              0.1001.2
rxjs                            6.6.3
typescript                      4.0.3

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions