我创立的SharePoint外接程序项目的js文件,我装箱“tsconfig.json”文件解决方案,然后与配置信息编辑和创建文件夹(“APP”),并增加了新的项目(应用程序.module.ts)到该文件夹中。视觉工作室不编译打字稿到
在构建解决方案之后,构建时没有错误,我期望从项目中的ts文件中看到生成的js文件(app.module.js和app.module.js.map),但没有任何发生。
tsconfig.json:
{
"compileOnSave": true,
"compilerOptions": {
"noImplicitAny": false,
"noEmitOnError": true,
"removeComments": false,
"sourceMap": true,
"target": "es5",
"module": "system",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"outDir": "./Scripts"
},
"exclude": [
"node_modules"
]
}
app.module.ts:
export class Welcome {
public static getMessage() {
return "Hello World";
}
}
我也跟着步骤,正是我在教程中看到他编译后生成的说文件,但我不能看到任何在我的项目。我怎样才能解决这个问题?更重要的我怎么能找到发现问题就在这里
全球化志愿服务青年:tutorial跳转到33:30
对不起,你能不能引用添加到您所提到的教程吗? – InferOn
@Inferon对其做 – TyForHelpDude
你尝试点击“显示所有文件”,在解决方案资源管理按钮或将目录?也许文件只是没有显示我当然的 – mgiesa