Skip to content
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

Unexpected value 'DialogModule' imported by the module 'AppModule' #1

Closed
adrienverge opened this issue Oct 6, 2016 · 2 comments
Closed

Comments

@adrienverge
Copy link

Hi @ammar91,

As first reported in primeng#1004, running ngc fails on my system.

Steps followed:

git clone https://github.com/ammar91/aot-primeng.git
cd aot-primeng
npm i
rm -rf node_modules/primeng
cp -r primeng-aot-build node_modules/primeng
npm run ngc

Error output by npm run ngc:

> Invoicing@1.0.0 ngc /tmp/aot-primeng
> ngc -p ./tsconfig.aot.json

Error: Unexpected value 'DialogModule' imported by the module 'AppModule'
    at /tmp/aot-primeng/node_modules/@angular/compiler/bundles/compiler.umd.js:14109:37
    at Array.forEach (native)
    at CompileMetadataResolver.getNgModuleMetadata (/tmp/aot-primeng/node_modules/@angular/compiler/bundles/compiler.umd.js:14094:46)
    at /tmp/aot-primeng/node_modules/@angular/compiler/bundles/compiler.umd.js:12936:58
    at Array.forEach (native)
    at OfflineCompiler.analyzeModules (/tmp/aot-primeng/node_modules/@angular/compiler/bundles/compiler.umd.js:12935:21)
    at CodeGenerator.codegen (/tmp/aot-primeng/node_modules/@angular/compiler-cli/src/codegen.js:105:47)
    at codegen (/tmp/aot-primeng/node_modules/@angular/compiler-cli/src/main.js:7:81)
    at Object.main (/tmp/aot-primeng/node_modules/@angular/compiler-cli/node_modules/@angular/tsc-wrapped/src/main.js:30:16)
    at Object.<anonymous> (/tmp/aot-primeng/node_modules/@angular/compiler-cli/src/main.js:14:9)
Compilation failed

Version information:

$ grep version node_modules/@angular/core/package.json
  "version": "2.0.1",
$ grep version node_modules/@angular/compiler/package.json
  "version": "2.0.1",
$ grep version node_modules/@angular/compiler-cli/package.json
  "version": "0.6.3",
$ tsc --version
Version 2.0.3
@ammar91
Copy link
Owner

ammar91 commented Oct 6, 2016

@adrienverge Sorry, primeng.js were missing, can you please take the latest and try again. It should work.

Also,

cp -r primeng-aot-build node_modules/primeng
should be
cp -r primeng-aot-build/primeng node_modules/primeng

@adrienverge
Copy link
Author

Now it's working! Thanks!

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