matthias-schuetz / angular2-seed Goto Github PK
View Code? Open in Web Editor NEWA basic Angular 2 TypeScript starter project
Home Page: http://matthiasschuetz.com/angular2-seed/
A basic Angular 2 TypeScript starter project
Home Page: http://matthiasschuetz.com/angular2-seed/
While using gulp I'm having these typescript semantic errors:
[09:27:48] Starting 'dev:compile:typescript'...
app\src\app.component.spec.e2e.ts(1,1): error TS2304: Cannot find name 'describe'.
app\src\app.component.spec.e2e.ts(3,5): error TS2304: Cannot find name 'beforeEach'.
app\src\app.component.spec.e2e.ts(4,9): error TS2304: Cannot find name 'browser'.
app\src\app.component.spec.e2e.ts(7,5): error TS2304: Cannot find name 'it'.
app\src\app.component.spec.e2e.ts(8,9): error TS2304: Cannot find name 'expect'.
app\src\app.component.spec.e2e.ts(8,16): error TS2304: Cannot find name 'browser'.
[09:27:49] TypeScript: 6 semantic errors
Also when running project these:
system.conf.js:1 Uncaught SyntaxError: Unexpected token <
Failed to parse SourceMap: http://localhost:8080/src/vendor/node_modules/Reflect.js.map
What is wrong?
Hi,
How to deploy in azure WebApp?
Thanks.
I am getting this error:
Error: Error at /foo/bar/app/src/bootstrap.aot.ts:2:36: Cannot find module '../../app-aot/app/src/app.module.ngfactory'.
I noticed that only a node_modules
foldes appeared under app-aot
, tehere is no app folder inside, so basically the app.module.ngFactory
is not being generated but dunno why
Any clue about the problem?
Is there any reason that the shared folder path has a +
?
C:\Users\user\Source\Repos\project\app\src\components\+shared\
This was causing some errors when deploying on a Windows 2012 Server. Just wanted to give you a heads up!
Gives this error :
HTML1300: Une navigation s’est produite.
Fichier : localhost:8080
Error: TypeError: L’objet ne gère pas la propriété ou la méthode « keys »
at Anonymous function (eval code:32249:9)
at Anonymous function (eval code:32248:5)
at linkDynamicModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3252:5)
at getModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3220:9)
at Anonymous function (http://localhost:8080/src/vendor/node_modules/system.src.js:3256:9)
at Anonymous function (eval code:32634:5)
at linkDynamicModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3252:5)
at getModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3220:9)
at Anonymous function (http://localhost:8080/src/vendor/node_modules/system.src.js:3256:9)
at Anonymous function (eval code:32797:5)
Error loading http://localhost:8080/src/bootstrap.js
{
[functions]: ,
proto: {
[functions]: ,
proto: { },
message: "",
name: "Error"
},
description: "TypeError: L’objet ne gère pas la propriété ou la méthode « keys »
at Anonymous function (eval code:32249:9)
at Anonymous function (eval code:32248:5)
at linkDynamicModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3252:5)
at getModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3220:9)
at Anonymous function (http://localhost:8080/src/vendor/node_modules/system.src.js:3256:9)
at Anonymous function (eval code:32634:5)
at linkDynamicModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3252:5)
at getModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3220:9)
at Anonymous function (http://localhost:8080/src/vendor/node_modules/system.src.js:3256:9)
at Anonymous function (eval code:32797:5)
Error loading http://localhost:8080/src/bootstrap.js",
message: "TypeError: L’objet ne gère pas la propriété ou la méthode « keys »
at Anonymous function (eval code:32249:9)
at Anonymous function (eval code:32248:5)
at linkDynamicModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3252:5)
at getModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3220:9)
at Anonymous function (http://localhost:8080/src/vendor/node_modules/system.src.js:3256:9)
at Anonymous function (eval code:32634:5)
at linkDynamicModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3252:5)
at getModule (http://localhost:8080/src/vendor/node_modules/system.src.js:3220:9)
at Anonymous function (http://localhost:8080/src/vendor/node_modules/system.src.js:3256:9)
at Anonymous function (eval code:32797:5)
Error loading http://localhost:8080/src/bootstrap.js",
name: "Error",
originalErr: { },
stack: null
}
Please provide steps to integrate library @matthias-schuetz
Hey there.
First of all I'd like to thank you for the work you have put into this project and sharing it. It has been a valuable asset while learning Angular2. So thank you very much.
I encountered what I think might be an error, although I may be wrong.
When running gulp build:prod I kept getting permission errors when the AOT scripts were running.
"-bash: node_modules/.bin/ngc: Permission denied"
After a bit of fiddling I was able to get the aot compiler working by changing the following in package.json:
"scripts": { "aot": "node_modules/.bin/ngc -p tsconfig-aot.json", "aot-rollup": "node_modules/.bin/rollup -c aot-rollup-config.js" },
"scripts": { "aot": "node node_modules/.bin/ngc -p tsconfig-aot.json", "aot-rollup": "node node_modules/.bin/rollup -c aot-rollup-config.js" },
Note that I had to place 'node' before each script.
What I believe was happening is the js file was trying to be run in the command line, but by adding 'node' to the front I was forcing it to be executed by nodejs.
I'm curios if this has happened to you?
Anyways. Thanks again.
I don't know if I am doing something wrong but having js and ts files together is very difficult to work on. I use vim and I need to rely on compiling ts to js .
I keep opening js files instead of ts files .
We need to separate dist files and source files.
I will work on that , if you like it we can merge .
Also I might add jade
support. I like jade more than html .
Hi,
I have "npm i" the project and then "gulp build:prod" and got this error:
[10:24:19] Starting 'prod:compile:aot'...
{ Error: Command failed: npm run aot || npm run aot-win && npm run aot-rollup || npm run aot-rollup-win
C:\Develop\angular\minimal-seed\angular2-seed-master\node_modules.bin\ngc:2
basedir=$(dirname "$(echo "$0" | sed -e 's,\,/,g')")
^^^^^^^
SyntaxError: missing ) after argument list
at Object.exports.runInThisContext (vm.js:76:16)
at Module._compile (module.js:528:28)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
can u help?
Is it possible to use the seed project if I want to run the app on IE10 or even IE9? Is there any easy solution like shim, or transpile to ES5 ?
Hi,
I ran gulp:prod, then I got the blank page in the chrome browser.
I looked at the console, found the following message
DevTools failed to parse SourceMap: http://localhost:8081/src/shim.min.js.map
Thanks.
i already downloaded this seed and it's perfect. But i can't debug the TS in chrome and I'm trying to add the source map and I can't. Anyone can help me with this. Currently I use the pug branch.
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.