alephjs/aleph.js

Extension issue in browser.

vikaskaliramna0 opened this issue · 2 comments

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.

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?

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.