Closed galvesribeiro closed 8 years ago
@galvesribeiro Will look into asap!
This works perfectly for me without issue. Can you be sure we are doing the same thing? :/
Was even able to extend Person as Employee and it keeps the folder structure as expected.
Did you try
npm uninstall typescript-dotnet --save
and then npm install typescript-dotnet --save
just to be sure?
npm uninstall typescript-dotnet --save
npm install typescript-dotnet --save
Does your project contain a package.json? That's part of how node/npm finds sub modules.
@electricessence you are the man! Perfect! Calling uninstall and them install again got the issue away! :)
May I ask if you fixed something between our last talk on gitter and now?
Thanks!
@galvesribeiro YES!!! Awesome. Yeah. I've had to do that a few times. npm update --save
isn't as reliable as we'd like.
Thanks! :dancer:
@galvesribeiro
May I ask if you fixed something between our last talk on gitter and now?
I fixed stuff in the last 24 hours yeah.
Steps to reproduce.
Create a folder structure like this(the + signal is just to illustrate the folder level:
Have the following config on tsconfig.json:
And the following src/Person.ts:
Save everything and build the project (VSCode or tsc command line). Note that output files are dropped correctly to build/ folder.
Now,
npm install typescript-dotnet --save
andnpm update --save
.Change the content of src/Person.ts to:
Delete the content of the build/ folder. Save all and now build the project again.
Notice that the output files are dropped into build/src/ instead of the src/ root folder.
The expected behavior is that the files got dropped on build/ while they are sent to the build/src. To confirm that the problem is with this module, comment the firs line (
import List from....
), clear the build directory and build again. You will see that the files are now again dropped correctly.What can we do to workaround it?
Thanks for the great work on the project.
Best regards, Gutemberg