ligershark / coretemplatepack Goto Github PK
View Code? Open in Web Editor NEWA collection of .NET Core project templates
License: Other
A collection of .NET Core project templates
License: Other
The server is not launching, only webpack dev server is running
Only webpack server is running
Webpack server should run, in addition to ASP.NET Core server
The error message fails to load the web page due to missing wwwroot/dist/vendor-manifest.json file.
Probably these files should not be excluded from git by using .gitignore?
After using this template successfully and deploying to IIS, I realized that the upload to my server was ~100MB. 99% of that bulk was due to the node_modules being included in the publish.
"publishOptions": {
"include": [
"appsettings.json",
"ClientApp/dist",
"node_modules",
"Views",
"web.config",
"wwwroot"
]
},
I am not sure if this directory actually needs to be included. But if not, taking that out would be ideal.
Although I'm very impressed by the whole template pack, I feel the build process way too slow. I believe it is because it pre-renders on the server side every time I start the project. Even if I'm in Debug mode.
In Publish mode when we compile and bundle everything, it is absolutely OK, but the development slows down dramatically.
The changes are not propagated to the client by simply reloading the page in the browser.
You need to restart the project in VS (Ctrl-Shift-F5) to see the changes in the browser.
And this step is painfully slow. (takes 1 minute or more)
During the development it should work much faster (10-15 seconds is OK). When publishing, it's OK to wait more since it has a lot of tasks to compile and render the site for production use.
Is it possible to turn off server-side pre-rendering for the development? And then turn it back for publishing? Is there a way to see my changes in the browser without restarting the project every time?
Thx.
[Update] - The changes ARE propagated automatically to the browser 1 or 2 times but after that I have to restart the project. I mean changes made on component template and component css only, not C# code or such.
Error: Can't bind to 'ngModel' since it isn't a known property of 'input'.
I have the following code in html template:
<input type="text" [(ngModel)] ="data"/>
When rendering the html page, the error was thrown.
Exception: Call to Node module failed with error: Error: Template parse errors:
Can't bind to 'ngModel' since it isn't a known property of 'input'. ("
AspNetCoreAngular2 template doesn't allow to use ngModel directive.
Using ngModel directive should not throw any error.
Hi, I have been trying to use this template, but I am not able to use the Angular 2 component to use css styling.
My code can be found here-
Can't get debugging of TypeScript to work for this template in Visual Studio + IE. Is it even supposed to work? I know this is probably not the correct place to report this problem, but maybe you know some secret recipe for things to finally just work in this mad new world? )) At least you appear to know something about how this webpack nightmare works and what it actually does, maybe it's not placing some files in the correct places that VS expect...
Visual studio sets an "empty" breakpoint (it becomes empty after starting the project) that says this in the tooltip: "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Working breakpoints and debugging
[@madskristensen: Copied from MSDN blog post]
I installed ASP.NET Core Template Pack from https://marketplace.visualstudio.com/items?itemName=MadsKristensen.ASPNETCoreTemplatePack and tried to create a project with the template ASP.NET Core Angular 2 Starter Application (.NET Core), but I get the following error:
“C:\Program Files\MSBuild\Microsoft\VisualStudio\v14.0\DotNet\Microsoft.DotNet.Props” was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. d:\temp\Angular2Application1\Angular2Application1.xproj.
Do you have an idea how to resolve this?
Can't get Angular2 template going (see included pic of Dialog Box)
. I have VS2017 RC installed also. Might that be the issue?
Install extension and open a new Angular2 template
After closing the dialog, can't seem to get anything to work. Won't even start
Just wondering if there are plans to make an F# template as well which brings everything together? Would be a great benefit at the current coreclr situation
Error after updating to last angular version 2.4.3
ncu -u
New package version
"@angular/common": "2.4.3",
"@angular/compiler": "2.4.3",
"@angular/core": "2.4.3",
"@angular/forms": "2.4.3",
"@angular/http": "2.4.3",
"@angular/platform-browser": "2.4.3",
"@angular/platform-browser-dynamic": "2.4.3",
"@angular/platform-server": "2.4.3",
"@angular/router": "3.4.3",
"@types/node": "^7.0.0",
"angular2-platform-node": "~2.1.0-rc.1",
"angular2-universal": "~2.1.0-rc.1",
"angular2-universal-polyfills": "~2.1.0-rc.1",
"aspnet-prerendering": "^2.0.2",
"aspnet-webpack": "^1.0.11",
"bootstrap": "^3.3.7",
"css": "^2.2.1",
"css-loader": "^0.26.1",
"es6-shim": "^0.35.1",
"expose-loader": "^0.7.1",
"extract-text-webpack-plugin": "^1.0.1",
"file-loader": "^0.9.0",
"isomorphic-fetch": "^2.2.1",
"jquery": "^3.1.1",
"preboot": "^4.5.2",
"raw-loader": "^0.5.1",
"rxjs": "5.0.3",
"style-loader": "^0.13.0",
"to-string-loader": "^1.1.5",
"ts-loader": "^1.3.3",
"typescript": "^2.0.0",
"url-loader": "^0.5.7",
"webpack": "^1.12.14",
"webpack-externals-plugin": "^1.0.0",
"webpack-hot-middleware": "^2.10.0",
"webpack-merge": "^2.4.0",
"zone.js": "^0.7.5"
An unhandled exception occurred while processing the request.
Exception: Call to Node module failed with error: Prerendering failed because of error: TypeError: Cannot read property 'SelectorMatcher' of undefined
at Object. (C:\ProjectsVsTeam\ImmagineWeb\Angular2Application\Angular2Application.Web\node_modules\angular2-platform-node_private_imports_.js:19:58)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\ProjectsVsTeam\ImmagineWeb\Angular2Application\Angular2Application.Web\node_modules\angular2-platform-node\node-platform.js:9:28)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
Current directory is: C:\ProjectsVsTeam\ImmagineWeb\Angular2Application\Angular2Application.Web
Thanks
Pierluigi
Followed instructions in this article http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/ and verified that all prereq's were installed first - restarted not only VS but machine and still the template does not show up ion VS
Template does not show up after install
The template does not show up and is not accessible
Template should show up
No download starts, it just redirects the browser to the same page
Download of the file should be started.
Hi,
I am using ASP.NET Core + Angular 2 template. The problem is with the TemplateURL which is not working with any URL. In my scenario I want to route it to the MVC controller and wanted to load the about page of Home controller.
Below is the exception.
Exception: Call to Node module failed with error: Error: No ResourceLoader implementation has been provided. Can't read the url "Home/About"
Here is my sample about.component.ts
import {Component} from '@angular/core';
import { platformUniversalDynamic } from 'angular2-universal';
@component({
selector: 'about',
templateUrl: 'Home/About'
})
export class AboutComponent {
message: string = 'Hello World';
Side notes:
module: {
loaders: [
{
test: /.ts$/,
loaders: ['awesome-typescript-loader', 'angular2-template-loader?keepUrl=true'],
exclude: [/.(spec|e2e).ts$/]
},
/* Embed files. /
{
test: /.(html|css)$/,
loader: 'raw-loader',
exclude: /.async.(html|css)$/
},
/ Async loading. */
{
test: /.async.(html|css)$/,
loaders: ['file?name=[name].[hash].[ext]', 'extract']
}
]
}
Hi, I am trying to use JQuery with this template and I am not being successful. I am using http://mdbootstrap.com/
For some of the components you have to initialize it with JQuery.
How would I do it using this template?
I have tried manually adding the jquery.min.js to the project but I am still facing the:
"ReferenceError: $ is not defined"
I created a new Asp.NET core Angular 2 starter application with this template. I removed bootstrap and added the materialize-css, but the generated file still contains the bootstrap and not materialize.
"materialize-css":"0.98.0"
webpack.config.vendor.js
remove the two lines concerning bootstrap(in the vendor array).webpack.config.vendor.js
add the following two lines(in the vendor array):'materialize-css',
'materialize-css/dist/css/materialize.css',
wwwroot/dist/vendor.css
file.Bootstrap classes are still present and materialize-css classes are not.
materialize-css classes should be present and bootstrap classes not.
Note: I'm kind of starting with all this webpack/npm/... stuff and I like it, but probably I did miss something? Is there a step that I should do manually to update this pack? If yes what? It makes 2 days I'm searching for it.
Note2: I'm still in a development stage, not production.
My current code is available on GH if you want to check something: https://github.com/jgrossrieder/PokerScrum
I want to use this template but I don't want to use EntityFrameworkCore since it lacks some fundamental features I can't afford to miss (TPT, Complex types etc.).
Anyway, I tried changing the template's json file to target net641, but I got many errors, most of them related to the JS services and the Anuglar package.
Can I make this work? Any tips on what my json should look like without rendering my project to a gazillion errors not knowing how to start?
I hereby vote for the inclusion of a package that includes the .NET with Anuglar and TypeScript template, that targets the full .NET allowing EF6.
We create angularJS2 application. In some component utf8 character shown normally but some don't. Specially templates that come from router-outlet. I think this extension has some bugs.
I just want to update this project from anuglar 2 to angular 4, but it doesn't work.
the Error looks just like this:
ERROR in [at-loader] ./node_modules/angular2-platform-node/node-renderer.d.ts:2:10
TS2305: Module '"C:/VSTS/Fuelhub/WebApp/node_modules/@angular/platform-browser/platform-browser"' has no exported member 'AnimationDriver'.
Replace this text with a short description
Explain what it's doing and why it's wrong
Explain what it should be doing after it's fixed.
I am a trying to use this template and tried to upgrade it to 2.4, but there is some difficulties, so I decided to use Angular 2.1.0. The styling was not working, so I have added this-
AbrarJahin/Dot.NetCore_Angular2_App@be93036
Now I am having some error like this-
An unhandled exception occurred while processing the request.
Exception: Call to Node module failed with error: Prerendering failed because of error: ReferenceError: window is not defined
at D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:6541
at D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:6473
at e.exports (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:6759)
at Object.<anonymous> (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:3513)
at t (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:217)
at Object.<anonymous> (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:3381)
at t (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:217)
at Object.e.exports (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:2992)
at t (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:217)
at Object.<anonymous> (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:1615)
at t (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:217)
at Object.<anonymous> (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:779)
at t (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:217)
at Zone.current.fork.name (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:310)
at Object.<anonymous> (D:\Dot.NetCore_Angular2_App\ProfileManagement\ClientApp\dist\main-server.js:1:315)
Current directory is: D:\Dot.NetCore_Angular2_App\ProfileManagement
https://github.com/abrarjahin/Dot.NetCore_Angular2_App/commits/master
Explain what it's doing and why it's wrong
Should run and should not give error window is not defined
In ASP.NET Core Angular 2 template the Web API server method WeatherForecasts called twice on browser refresh (F5) of 'http://localhost:5000/fetch-data' page.
You will notice that WeatherForecasts is called twice: once on the server during server-side prerendering and once from the browser's javascript after the page has being loaded.
It should be only called once during server-side prerendering.
Is there a version for Visual Studio 2017?
Console displays [HMR] connected
but no files are updated
ASP.NET Core Angular 2 Starter Application (.NET Core)
[HMR] connected
in consolehome.component.html
Currently nothing happens
Page get's updated with the edit from home.component.html
I have absolutely no clue where to start. May you give me some adivce.
Thanks
Please guide in including external css files like when using primeng.
I have already tried including it in webpack.config.vendor.js and also tried to use them by importing an scss file with links to the external css in that scss file
Also tried including them directly in app.module.ts and also in index.cshtml
But nothing seems to work.
Hi,
I'm preparing a few templates but I have a problem: since I'm using openIdDict I have to add a nuget.config file becase is not in the standard nuget repo.
How can I handle this?
I have followed the posting at http://blog.stevensanderson.com/2016/10/04/angular2-template-for-visual-studio/ to start a new MVC Angular 2 application.
I also noticed that in the solution explorer there is an entry "References (Errors - see Error List ) --- there is no Error List...
Don't know what to do.
How to enable client side Typescript debugging for Angular2 Applications?
The breakpoint is not hit. Hovering over the breakpoint will display the message "The breakpoint will not currently be hit. No symbols have been loaded for this document.
I would like to have client side typescript debugging enabled as well as server side ASP.NET Core debugging.
So i would expect the breakpoint to be hit and the execution to pause at this breakpoint.
I am using this template and ater creating a project from it I get "Unable to connect to web 'IIS Express'" found that launchSettings.json just contains a single profile which is IISExpress that always fails
Unable to connect to web 'IIS Express'
to be able to debug after F5
Package restore fails on:
Microsoft.AspNetCore.AngularServices
Microsoft.Extensions.Configuration.CommandLine
with error message:
"Unable to resolve 'Microsoft.AspNetCore.AngularServices (>= 1.0.0)' for '.NETCoreApp,Version=v1.0'."
Do I have a version mismatch somewhere? How can I debug this further?
Update:
Came back to work the next day. Tried to Restore Packages by right clicking "References" in the projects. Works just fine now :)
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.