Extension issue in browser.
vikaskaliramna0 opened this issue · comments
Vikas 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.
Maxim Yurevich 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?
Craig Doremus 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.