Ts-node : SyntaxError: Cannot use import statement outside a module

2021-01-08 16:51:07

ts中使用import引入方法报错,应该怎么办,虽然不知道咋回事,但是ts-node  index.ts 这样没问题你了

// tsconfig.json
{
    "module": "CommonJS",
}


  • 2021-04-25 09:53:18

    android debug速度特别慢有时候卡住

    一直提示定在 Starting LLDB server。可能的原因是 Android Studio编译速度太慢了,就会一直卡在Starting LLDB server。可以通过设置 Run/Debug Configurations ——> Debugger ——> Debug type 为 Java 跳过 C/C++的调试,起码实现对 Java 程序的调试

  • 2021-04-25 09:54:19

    sequelize 时区配置

    sequelize 默认情况下, 保存日期时会转换成 +00:00时区,