TipScript'te çok yeniyim ve TS dosyalarımın TS dosyaları olduklarını belirtmeksizin alabilmem gerektiğini umuyorum.Dosya uzantısını sağlamadan TypeScript modüllerini içe aktarma yapılamıyor
yerine sadece dosyaları .js biten ya aradığını belirten hatalara yol açar
import {sealed} from "./decorators/decorators";
olan doğru yolu nedir bence istiyorum ait
import {sealed} from "./decorators/decorators.ts";
yapmak zorunda .jsx
benim tsconfig.json bu
{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"moduleResolution": "node",
"jsx": "react",
"allowJs": true,
"target": "es6",
"removeComments": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"exclude": [
"node_modules",
"typings/browser",
"typings/browser.d.ts"
]
benziyor
}
. Onları yüklemek için ne kullanıyorsun? Webpack? Yoksa bu bir düğüm uygulaması mı? – vintem
Webpack –