How to provide the module flag in a VS2015 project?

前端 未结 3 1449
野趣味
野趣味 2020-12-16 18:44

I\'ve created a new .ts file in a webproject using VS2015. In the properties for the project under TypeScript Build I\'ve checked Module System = AMD.

Then when tryi

3条回答
  •  旧巷少年郎
    2020-12-16 19:46

    You have updated the correct setting - the project properties does have setting for each build configuration, so make sure you have also ticked "AMD" under each configuration (for example, Debug and Release).

    I often get caught by this when switching between configurations.

提交回复
热议问题