outside a module` и рекомендацию прописать в package.json "type": "module". Добавляю. И снова ошибка `Unknown file extension ".ts". Как побороть? tsconfig: 
                  
                  
                  {
                  
                  
                    "compilerOptions": {
                  
                  
                      "lib": ["dom", "dom.iterable", "esnext"],
                  
                  
                      "outDir": "./dist/",
                  
                  
                      "noImplicitAny": true,
                  
                  
                      "module": "ESNext",
                  
                  
                      "target": "ESNext",
                  
                  
                      "allowJs": true,
                  
                  
                      "noEmit": false,
                  
                  
                      "strict": true,
                  
                  
                      "moduleResolution": "node",
                  
                  
                      "forceConsistentCasingInFileNames": true,
                  
                  
                      "allowSyntheticDefaultImports": true,
                  
                  
                      "esModuleInterop": true
                  
                  
                    },
                  
                  
                    "include": ["./**/*.ts"],
                  
                  
                    "exclude": ["node_modules"]
                  
                  
                  }
                  
                  
                
ты target укажи не esnext
спасибо, с этим разобрался
Обсуждают сегодня