Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Unassigned: Renaming a TS file by changing capitalization causes it to be unresolvable [1116]

$
0
0
Repro steps: (VS2013 Update 2 & NTVS Dev 2014-05-14 VS 2013)

1. Create blank "Basic Express Application" with typescript
2. Rename routes/user.ts to routes/User.ts in VS
3. Change require statement from import user = require('./routes/user'); to import user = require('./routes/User');
4. observe errors when building
5. delete user.js & user.js.map
6. observe errors still (potential second bug),
7. observe mismatch between VS's view of files in solution explorer and file system
8. restart Visual Studio, builds properly

Note: there is potentially a third bug, but I don't know how to repro it. When I ran into this initially when I renamed the file to the uppercase version it didn't change in the filesystem, only in VS

Viewing all articles
Browse latest Browse all 4630

Trending Articles



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