Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
JoeDictionary opened this issue Sep 24, 2020 · 0 comments

Comments

@JoeDictionary
Copy link

JoeDictionary commented Sep 24, 2020

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant