Comments (12)
Ok, I believe it's because I'm not using an es6 browser and I have to have a transpiler handle it with traceur. I watched the angular-connect keynote and was following along until I hit this roadblock.
from angular-cli.
What browser are you using?
from angular-cli.
dang. I thought I was on Chrome 46 on my linux laptop, but it turns out I'm only at chrome 42. I'm upgrading it and I'll try it again. Should it work in 46?
from angular-cli.
I updated to 46.0.2490.80 (64-bit). I still only see the loading...
from angular-cli.
I enabled harmony via chrome://flags/#enable-javascript-harmony, still no luck. 'Loading...'
from angular-cli.
looks like Arrow functions will be in Chrome 47. I might try Canary on the Mac to see if that works.
from angular-cli.
I installed Canary on the Mac (48.0.2544.0 64-bit) with the same results. :(
from angular-cli.
TypeScript is transpiling to ES5 by default with angular-cli
. You don't need to use Traceur, nor do you need ES2015 support in the browser. That is unrelated to the issue you are having.
from angular-cli.
Ok. I ended up creating a new project on my mac with V4.2.1 and I used Chrome 46 (not canary) and it seemed to work fine. I also tested it on linux from scratch and it worked fine there, too.
I don't know what changed. Thank you.
from angular-cli.
Glad to hear it. But you don't need to use Canary. You can use any newer browser, just FYI.
edit: Oh, you said NOT canary. Ignore me. Glad you're up and running!
from angular-cli.
So I did a diff against my non-working version and working version and the difference was in the system-config section:
Working:
System.config({
packages: {
app: {
format: 'register',
defaultExtension: 'js'
}
}
});
Not working:
System.config({
map: {
traceur: 'node_modules/traceur/bin/traceur.js'
}
});
from angular-cli.
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
from angular-cli.
Related Issues (20)
- Import attributes support for karma builder
- ng serve breaks when using @import in index.html
- file loader can not use with material iconRegistry.addSvgIcon wrong relative path
- migration use-application-builder do not find src/main.ts HOT 1
- SSR provider not working in angular dev-server 18.0.4 when provided in commonEngine.render() HOT 1
- Decorator metadata missing in production build HOT 5
- tsconfig not found when no project architect `build` is available HOT 3
- Angular's minification breaks class extensions when super() returns objects HOT 5
- Simbols not supported on Dir HOT 2
- BUG: The document object is not available in this context after upgrading to 18.2.0-next.3 HOT 3
- Live reloading not working after changes Angular 17 HOT 1
- `ng build` throws on `import inspector from 'node:inspector';` on gentoo default node.js install
- Command `ng build` fails behind corporate proxy HOT 2
- Build watch EPERM operation not permitted, copyfile on second emit HOT 2
- --stats-json to allow giving stats to both server and browser, separately HOT 1
- Update component schematic to 'export default class' by default HOT 1
- Option 'declarationDir' cannot be specified with option 'outFile'. HOT 1
- Schematic input does not validate against the Schema HOT 1
- generate component: Add an option to fine-tune the inclusion of lifecycle hooks HOT 1
- Typescript cannot find module that was defined in "paths" tsconfig.app.json HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from angular-cli.