cincheo / jsweet-angular2-quickstart Goto Github PK
View Code? Open in Web Editor NEWJSweet-enabled Angular 2 quickstart
License: MIT License
JSweet-enabled Angular 2 quickstart
License: MIT License
I have noticed that in Angular 2 examples, some decorators access module.id
, which is from commonsjs. Right now JSweet does not support this construct, but it could quite easily. Would it be helpful?
Right now it looks like the default name for the module files is always "module.ts". Can we customize this? I suppose I'm expecting the output to look like a standard Angular2 app, but maybe that's not necessary. It would help, however, when naming templates and other dependencies to know exactly where they should go...
Hi,
Just tried to run the default quickstart and I got the following error messages:
[email protected] start C:\Workspaces\workspaceJSweet\jsweet-angular2-quickstart
tsc && concurrently "tsc -w" "lite-server".generated/app/AppComponent.ts(3,29): error TS2305: Module 'core' has no exported member 'Component'.
.generated/app/AppComponent.ts(3,29): error TS2339: Property 'Component' does not exist on type 'typeof core'.
.generated/app/AppModule.ts(3,28): error TS2305: Module 'core' has no exported member 'NgModule'.
.generated/app/AppModule.ts(3,28): error TS2339: Property 'NgModule' does not exist on type 'typeof core'.
.generated/app/AppModule.ts(5,28): error TS2304: Cannot find name 'platform_browser'.
.generated/app/AppModule.ts(5,28): error TS2503: Cannot find namespace 'platform_browser'.
.generated/app/Globals.ts(3,37): error TS2304: Cannot find name 'platform_browser_dynamic'.
.generated/app/Globals.ts(3,37): error TS2503: Cannot find namespace 'platform_browser_dynamic'.npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Users\Dani\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! node v4.2.0
npm ERR! npm v4.0.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start:tsc && concurrently "tsc -w" "lite-server"
npm ERR! Exit status 2
I'm using:
node v4.2.0
npm v4.0.5
tsc 1.0.3
java 1.8.0_111
Any clue?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.