Extension issue in browser.
vikaskaliramna0 opened this issue · 2 comments
vikaskaliramna0 commented
This doesn't work.
import { ComponentButton } from '../Library/Component.TS';
but this works
import { ComponentButton } from '../Library/Component.ts';
Deno Console shows no error if the extension is uppercase but lots of errors in browser.
Same goes for StyleSheet files.
maximyurevich commented
This doesn't work.
import { ComponentButton } from '../Library/Component.TS';but this works
import { ComponentButton } from '../Library/Component.ts';Deno Console shows no error if the extension is uppercase but lots of errors in browser.
Same goes for StyleSheet files.
Is this wrong behaviour?
cdoremus commented
I don';t know if it is a rule, but it is a general convention that extensions (like .ts) are lower case. Most modern programming languages including JavaScript and TypeScript are case-sensitive.