Quantcast
Channel: bundletransformer Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 698

Created Issue: TypeScript breaks when referencing the same file in two different ways [14]

$
0
0
If you have a class which is referenced in one file like
/// <reference path="./BaseClass.ts" />
and in another file as
/// <reference path="BaseClass.ts" />
you get an error
"Message: Duplicate identifier 'BaseClass'
Line number: 0
Column number: 0
Source error: "

The problem is in TypeScriptTranslator where in the method FillDependencies it checks that the reference has not been added previously using GetDependencybyUrl. The problem occurs as one version is stored with the "./BaseClass.ts" version and one is stored with the "BaseClass.ts" version

Viewing all articles
Browse latest Browse all 698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>