Skip to content

Commit e5d9f2b

Browse files
author
bob
committed
Reproduction of angular/angular-cli#3875
0 parents  commit e5d9f2b

File tree

7 files changed

+64
-0
lines changed

7 files changed

+64
-0
lines changed

.gitignore

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Example user template template
3+
### Example user template
4+
5+
# IntelliJ project files
6+
.idea
7+
*.iml
8+
out
9+
gen
10+
11+
node_modules

README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Reproduction of: https://github.com/angular/angular-cli/issues/3875
2+
3+
* npm link (in ./lib)
4+
* npm link @test/lib (in frontend)
5+
* ng build
6+
7+
Results in:
8+
ERROR in Error encountered resolving symbol values statically. Calling function 'makeDecorator', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol NgModule in /test/frontend/node_modules/@test/lib/node_modules/@angular/core/src/metadata/ng_module.d.ts, resolving symbol NgModule in /test/frontend/node_modules/@test/lib/node_modules/@angular/core/src/metadata.d.ts, resolving symbol NgModule in /test/frontend/node_modules/@test/lib/node_modules/@angular/core/src/core.d.ts, resolving symbol NgModule in /test/frontend/node_modules/@test/lib/node_modules/@angular/core/index.d.ts, resolving symbol TestModule in /test/frontend/node_modules/@test/lib/src/test.module.ts, resolving symbol TestModule in /test/frontend/node_modules/@test/lib/src/test.module.ts

frontend

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 92e54dce850514d9de23712bb56c47c5da88c864

lib/package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "@test/lib",
3+
"version": "1.0.0",
4+
"description": "",
5+
"main": "index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"author": "",
10+
"license": "ISC",
11+
"dependencies": {
12+
"@angular/common": "^2.4.5",
13+
"@angular/core": "^2.4.5",
14+
"typescript": "^2.1.5"
15+
}
16+
}

lib/src/test.component.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<div>test</div>

lib/src/test.component.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import {
2+
Component
3+
} from '@angular/core';
4+
5+
@Component({
6+
selector: 'app-test',
7+
templateUrl: './test.component.html'
8+
})
9+
export class TestComponent {
10+
11+
}

lib/src/test.module.ts

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import {NgModule} from '@angular/core';
2+
import {CommonModule} from '@angular/common';
3+
import {TestComponent} from './test.component';
4+
5+
@NgModule({
6+
imports: [
7+
CommonModule
8+
],
9+
declarations: [
10+
TestComponent
11+
],
12+
exports: [
13+
TestComponent
14+
]
15+
})
16+
export class TestModule { }

0 commit comments

Comments
 (0)