-
Notifications
You must be signed in to change notification settings - Fork 12k
Incorrect declaration files #12094
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
Comments
From @filipesilva on May 24, 2018 16:45 I'm not sure how you're running this though. We run linting on your repro and the error does not come up. How exactly are you getting this error? Can you provide repro steps? |
From @mdasberg on May 24, 2018 18:20 When trying to extend the BrowserBuilder for example, I get errors when trying to compile. FileReplaceMents is not an interface or class. FileReplacement is. |
From @mdasberg on May 24, 2018 18:50 For example: import {BrowserBuilder, NormalizedBrowserBuilderSchema} from '@angular-devkit/build-angular';
import {Path, virtualFs} from '@angular-devkit/core';
import * as fs from 'fs-extra';
export class MyBrowserBuilder extends BrowserBuilder {
/** {@inheritDoc}. */
buildWebpackConfig(root: Path, projectRoot: Path, host: virtualFs.Host<fs.Stats>, options: NormalizedBrowserBuilderSchema): any {
return super.buildWebpackConfig(root, projectRoot, host, options);
}
}
export default MyBrowserBuilder; will result in the following errors:
Also notable is that when you change for instance the schema.d.ts file with
It also passes. |
From @dwieeb on May 30, 2018 17:44 Also getting this. Not quite sure how this compiles: notice the additional |
Duplicate of #11294 |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
From @mdasberg on May 23, 2018 13:1
Bug Report or Feature Request (mark with an
x
)Area
Versions
All
Repro steps
Any typescript linter will show the error.
The log given by the failure
...packages/angular_devkit/build_angular/src/browser/schema.d.ts
Unresolved type FIleReplacements
52 | fileReplacements: FileReplacements[];
...packages/angular_devkit/build_angular/src/server/schema.d.ts
Unresolved type FIleReplacements
75 | fileReplacements: FileReplacements[];
Desired functionality
Fix the declaration files see: PR
Mention any other details that might be useful
Copied from original issue: angular/devkit#963
The text was updated successfully, but these errors were encountered: