Type <typename> in <path> is part of the declaration of 2 modules...
See original GitHub issueHi, I got this error after loading tsconfig.app.json
.
{
"extends": "../tsconfig.json",
"angularCompilerOptions": {
"paths": {
"eyc-sol-ant-pln": [ "../my-lib/src/public_api.ts" ]
}
},
"compilerOptions": {
"outDir": "../out-tsc/app",
"module": "es2015",
"baseUrl": "",
"types": [],
"paths": {
"eyc-sol-ant-pln": [ "../my-lib/src/public_api.ts" ]
}
},
"exclude": [ "test.ts", "**/*.spec.ts", "**/*.mock.ts" ]
}
I don’t really think, the module is declared in two modules, it is only declared in CoreModule:
Isn’t it the problem with paths (/
vs \
, I’m on Win10)?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Component is part of the declaration of 2 modules
I understand that I have to remove one of the declarations, but I don't know how. If I remove the declaration from AppModule...
Read more >Module types (module specifications)
Module types are the module-level equivalent of type expressions: they specify the general shape and type properties of modules. module-type, ::= modtype-path.
Read more >Chapter 7. Packages and Modules - Oracle Help Center
A type -import-on-demand declaration (§7.5.2) imports all the accessible types of a named type or named package as needed, by mentioning the canonical...
Read more >References to Values - Configuration Language | Terraform
<RESOURCE TYPE>.<NAME> represents a managed resource of the given type and name. The value of a resource reference can vary, depending on whether...
Read more >psddl.HddlReader — pydoc-all documentation
EDU $ # # Description: # Module HddlReader. ... Type import Type from psddl. ... parseDevelTypes: return # every type must have a...
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
@mgechev that does not cut it for me, I get the same error with or without
exclude
/include
properties.Actually, reproducing this is quite simple (Windows 10).
ng --version
Angular CLI: 1.6.7 Node: 8.9.4 OS: win32 x64 Angular: 5.2.7 … animations, common, compiler, compiler-cli, core, forms … http, language-service, platform-browser … platform-browser-dynamic, router
@angular/cli: 1.6.7 @angular-devkit/build-optimizer: 0.0.42 @angular-devkit/core: 0.0.29 @angular-devkit/schematics: 0.0.52 @ngtools/json-schema: 1.1.0 @ngtools/webpack: 1.9.7 @schematics/angular: 0.1.17 typescript: 2.5.3 webpack: 3.10.0
ng new ng-rev
cd ng-rev
ng g m ModuleOne
cd src\app\module-one\
and thenng g c ComponentOne
.exports: [ComponentOneComponent]
imports: [BrowserModule, ModuleOneModule]