Angular CLI cannot compile
See original GitHub issueThe line export const options: Partial<IConfig> | (() => Partial<IConfig>);
from the instructions is flagged as an error, and compilation fails:
ERROR in src/app/web/inputfields/inputfields.module.ts(9,14): error TS1155: 'const' declarations must be initialized.
src/app/web/inputfields/inputfields.module.ts(9,31): error TS2304: Cannot find name 'IConfig'.
src/app/web/inputfields/inputfields.module.ts(9,57): error TS2304: Cannot find name 'IConfig'.
Issue Analytics
- State:
- Created 4 years ago
- Comments:11
Top Results From Across the Web
Angular CLI project failed to compile - node.js - Stack Overflow
Uninstall Node by using an app cleaner eg IObit Uninstaller Pro (The pro version will delete all folders associated with node eg npm,...
Read more >cannot build · Issue #21399 · angular/angular-cli - GitHub
It looks like the primary issue here is that @angular/compiler-cli is being included in the bundle. That is a Node only package that...
Read more >Angular compiler options
When you use ahead-of-time compilation (AOT), you can control how your application is compiled by specifying template compiler options in the TypeScript ...
Read more >Identify and Fix Build and Deployment Errors in Your Angular ...
This error occurs when the Angular CLI cannot find a project to execute against. Fortunately, this error is often very easy to resolve....
Read more >@angular/compiler-cli - npm
Angular - the compiler CLI for Node.js. Latest version: 15.0.4, last published: 12 days ago. Start using @angular/compiler-cli in your ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@smlombardi You’ll need to import the IConfig from the ngx-mask module and set it to some initial value, because it’s a
const
so:Now I get