Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

AOT compilation throwing an error #7

Open
born4thrill opened this issue May 31, 2017 · 2 comments
Open

AOT compilation throwing an error #7

born4thrill opened this issue May 31, 2017 · 2 comments

Comments

@born4thrill
Copy link

Issue Overview

While trying to do AOT for my app the cli was throwing the below error
ERROR in Unexpected value 'undefined' exported by the module 'FileUploaderModule in /node_modules/@uniprank/ngx-file-uploader/typings/index.d.ts'

Issue Description

The command that I used to run AOT node_modules/.bin/ngc -p tsconfig-aot.json
File content for tsconfig-aot.json
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es5",
"lib": [
"es2015", "dom"
],
"module": "es2015"
},
"files": [
"src/app/app.module.ts",
"src/main.ts"
],

"angularCompilerOptions": {
"genDir": "aot",
"skipMetadataEmit" : true
}
}

@Denfie
Copy link
Member

Denfie commented Jun 1, 2017

hey born4thrill,

thanks for your message, please try the new uploader from me. It's working like this one but it's builded for angular 2 and all newer versions. It used UMD files for the integration. ngx-file-uploader. This is an old version and it's deprecated.

Thanks a lot

@glr91
Copy link

glr91 commented Aug 21, 2017

I am using the uploader of ngx-file-uploader and it fails when trying to do AOT compilation. The error thrown is the same that @born4thrill reflected here. Any ideas on how to fix this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants