-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with external imports in aurelia #2988
Comments
I tried to install tsd inside this project and is giving to me some problems, with a lot of errors: looks like ts I trying to recompile the content of the /node_modules/tsd/build and find a lot of missing references. |
I solved the first problem setting to false noEmitOnError in the tsconfig file, but I would like to find a better solution |
The probelm is that tsconfig.json does not support execludes. this is tracked by #1927. So it is teling the compiler to include *__.ts in the current directory, which includes your tsd sources as well. To workaround this, in tsconfig,add a "files" entry and list your files, this will not include all files.
As you mentioned later you also need a reference to moment.d.ts. |
thanks, add my application ts files in the files section solved several problems. I see that enabling es 6 output generates a few errors in the moment.d.ts file too. |
if it is:
This has been fixed in #2929, and should be in master now. |
I have some errors like these, using visual studio code that uses tsconfig.json : I suppose this may be happen when I'm using new frameworks when thd .d.ts is not still available and/or complete. btw: always talking about visual studio code, looks like that similar scenario when I compile I found 0 errors, as I start to write something detect a few errors |
Yeah, that sounds like a |
@cmichaelgraham can you point @lucamorelli to the latest .d.ts for aurelia? |
we are now automatically generating the aurelia We are still working out some kinks. let me know if you have troubles. |
thanks for the link. I'm still working on it to see if is possibile to use jspm as in the normal javascript version. nothing against the solution you have found, but in this solution when you have a problem with the program you don't know if it is part of the problem. |
you should be able to use the .d.ts files above with your jspm solution. i'm happy to help if you run into trouble |
I copied directly all the sample in an asp.net 5 proejct: runs with chrome but not with ie. |
i started down the path you describe with jspm & systemjs & esri. esri uses dojo. dojo has its own loader (which is requirejs compliant). for the time being, i have given up on making esri work properly with jspm and systemjs. instead, i create an amd module bundle of the aurelia libraries and use the dojo amd loader that is part of the esri distribution via cdn. you can see that working here and described in the blog entry: Getting Started with Aurelia and TypeScript |
Thanks for the infos. I'm more interested to have a running project using typescript and jspm that to have esri, so I'll try to clean up and recreate it. |
sounds great - reach out if you run into troubles 👍 |
Hi, looks like that now it works, and I see that now .d.ts files are inside the package.
response is any, I think because of this.
can you give me more informations on how to modify the .d.ts files? |
I'm trying to convert to full typescript some parts of the samples
if I'm correct, I think that in the .d.ts files are included just methods, not properties, because in the RouterConfiguration class I had to add the property title. |
@lucamorelli if you're still interested, I have a full port of aurelia skeleton-navigation to TypeScript. Please follow link to related issue. |
Hi,
I'm using visual studio code to reproduce this sample in typescript
http://odetocode.com/blogs/scott/archive/2015/02/18/using-jspm-with-visual-studio-2015-and-asp-net-5.aspx
all works fine until I arrive at the point 4 and try to use moment. I follow the instructions, install the package using jspm, but I have the error message that cannot find this module, and the source files are not compiled.
Am I missing something?
The text was updated successfully, but these errors were encountered: