Production Publish with Angular V2 Template - TS errors #56

Closed
opened 2025-08-09 17:14:50 +00:00 by fergalmoran · 0 comments
Owner

Originally created by @aherrick on 5/23/2018

I have a new Angular V2 template project.

I'm receiving errors when publishing Production. I'm just simply trying to publish to a folder in VS2017.

Error	TS2693	(TS) 'Promise' only refers to a type, but is being used as a value here.
Error	TS2304	(TS) Cannot find name 'Map'.
Error	TS2339	(TS) Property 'from' does not exist on type 'ArrayConstructor'.

I see people talking about updating tsconfig.json however I'm not seeing that make any difference.

Below is my updated tsconfig.json

What do I need to do here?

{
  "compileOnSave": false,
  "compilerOptions": {
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [ "es2017", "es5", "es6", "dom" ]
  },
  "exclude": [ "bin", "node_modules" ]
}

2018-05-23_10-25-51

*Originally created by @aherrick on 5/23/2018* I have a new Angular V2 template project. I'm receiving errors when publishing Production. I'm just simply trying to publish to a folder in VS2017. ``` Error TS2693 (TS) 'Promise' only refers to a type, but is being used as a value here. Error TS2304 (TS) Cannot find name 'Map'. Error TS2339 (TS) Property 'from' does not exist on type 'ArrayConstructor'. ``` I see people talking about updating `tsconfig.json` however I'm not seeing that make any difference. Below is my updated `tsconfig.json` What do I need to do here? ``` { "compileOnSave": false, "compilerOptions": { "outDir": "./dist/out-tsc", "sourceMap": true, "declaration": false, "moduleResolution": "node", "emitDecoratorMetadata": true, "experimentalDecorators": true, "target": "es5", "typeRoots": [ "node_modules/@types" ], "lib": [ "es2017", "es5", "es6", "dom" ] }, "exclude": [ "bin", "node_modules" ] } ``` ![2018-05-23_10-25-51](https://user-images.githubusercontent.com/586671/40430695-b2c06660-5e73-11e8-90da-299e00c008bb.png)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/JavaScriptServices#56
No description provided.