Skip to content

Problem with file system import #1222

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

Closed
Noeldesarrollo opened this issue Mar 14, 2022 · 1 comment
Closed

Problem with file system import #1222

Noeldesarrollo opened this issue Mar 14, 2022 · 1 comment

Comments

@Noeldesarrollo
Copy link

Bug report

Pointing to https://github.com/webpack/webpack-dev-middleware/blob/master/types/index.d.ts

line 204:
import("fs").StatSyncFn;

This function doesn't exist on filesystem

Actual Behavior

Compile error.

Expected Behavior

import needs to be changed to import("fs").StatSync;

How Do We Reproduce?

@angular-devkit/build-angular v13.2.6 uses: webpack-dev-middleware": "5.3.0"

node v14.17.6
"@angular-devkit/architect": "0.1302.6",
"@angular-devkit/build-angular": "13.2.6",
"@angular-devkit/core": "13.2.6",
"@angular-devkit/schematics": "13.2.6",
"@schematics/angular": "13.2.6",
"@angular/compiler": "13.2.6",
"@angular/compiler-cli": "13.2.6",

@alexander-akait
Copy link
Member

Duplicate #1194

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

2 participants