Chrome Dev Tools Issue With ES6 String Literals/Typescript

后端 未结 3 2015
离开以前
离开以前 2021-02-01 00:37

I am working on a project using Typescript and some of the ES6 features exposed by Typescript like ES6 String Literals e.g. `Something ${variable} Something else`.<

3条回答
  •  -上瘾入骨i
    2021-02-01 01:08

    As for version 69.0.3497.100 (Official Build) (64-bit) in Ubuntu is still a bug.

    As a workaround you can start adding: //` to the end of lines containing templated strings, which fixes the formatting in the chrome sources tab.

    Here some examples of my working jsx code.


    In component props:

      
    

    As a child element:

      
    

    In a statement:

      switch (DEBTTYPE) {
        case DEBTTYPE_MACHINE_PRODUCT:
          id = `machine_product_difference_row_${row.id_productdebt}`;// `
          break;
          ....
    

    I really hope that they can fix this issue as fast as possible.

提交回复
热议问题