-
Notifications
You must be signed in to change notification settings - Fork 350
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
traceur 404 (Not Found) #55
Comments
in component: |
Hey guys, I prepared example for you. Althought you still need an API server. Just run: Also, please let me know if this works for you guys so I can close an issue. Thanks. |
@jkuri |
Give me an example where you got stuck and I can take a look. |
i just installed angular2-webpack-starter |
latest version didnt work with rc5 and latest cli. |
Just tried with the latest version of import { Component } from '@angular/core';
import { UPLOAD_DIRECTIVES } from 'ng2-uploader';
@Component({
selector: 'app-root',
templateUrl: 'app.component.html',
styleUrls: ['app.component.css'],
directives: [UPLOAD_DIRECTIVES]
})
export class AppComponent {
title = 'app works!';
uploadFile: any;
options: Object = {
url: 'http://ng2-uploader.com:10050/upload'
};
handleUpload(data): void {
if (data && data.response) {
data = JSON.parse(data.response);
this.uploadFile = data;
}
}
} |
is it also angular rc5 ? |
yes, tested with creating new project with |
i think ng new uses rc4, you have to upgrade it manually. |
Try using latest version of |
With 5.12, im getting this error
And
It refuses to compile with codelyzer 0.27, webpack 2 and ng2 rc5 |
Okay, thanks On Thursday, 11 August 2016, lacroixdavid1 [email protected] wrote:
|
Can you send mir the code oft the running example with latest cli? I dont get it running. |
I have the same issue with Angular CLI and Angular2 rc4. Downgraded to 0.5.10 as @dindong said and it works now. |
Same here - getting on angular2 RC5 works on 0.5.10 version |
@jkuri: In e5846dc, you changed the output module format from commonjs to es6 in Now I guess that SystemJS recognises this and tries to load Traceur, which fails because most of the commenters here (including myself) do not use Traceur and haven't configured SystemJS to load it. This bugged me all the more since I had a dependency on ^0.5.10 and npm/semver installed the – supposedly compatible – 0.5.13, which had breaking changes. But I really don't want to sound too critical. Your work is still great! |
Hi @MJochim, https://github.com/jkuri/ng2-uploader/blob/e5846dcdee2493bd7980256254bf713f6045a272/tsconfig.json#L11 target is still es5 so I believe this is correct. |
Although the target is es5, the Typescript compiler will still produce modules in ES2015 syntax. These have import and export statements and look very much like the original Typescript code. Unfortunately, they are not understood by most of today’s browsers. Just try and set module (https://github.com/jkuri/ng2-uploader/blob/e5846dcdee2493bd7980256254bf713f6045a272/tsconfig.json#L8) to |
Okay, I will update this today. Thanks for notice. |
Hi there!
Trying to run package with angular2 5 min quickstart (https://angular.io/docs/ts/latest/quickstart.html) and getting 404 error with traceur.
I've attached result "project". Probably, I am doing something wrong with settings. Can you look?
angular2.zip
The text was updated successfully, but these errors were encountered: