Code Monkey home page Code Monkey logo

asp.net-core-basics's Introduction

ASP.NET-Core-Basics

This repository contains the code that goes with set of blog post on the basics of of ASP.NET Core where can be found here.

Expanded

This repo now gives a jumping off point to experiment with Angular 2, Aurelia, React, Vue, and Blazor from inside the same soultion using different projects for each framework. These frameworks repersent the next generation of SPA frameworks.

asp.net-core-basics's People

Contributors

dependabot[bot] avatar elanderson avatar ericanderson1 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

asp.net-core-basics's Issues

TS2322 issues in contactService.ts

I was trying to run this sample code today in the Aurelia project, and VS2017 15.8.1 and the command line build are giving issues with the API service in ./ClientApp/app/components/contact/contactServce.ts:

  ERROR in ./ClientApp/app/components/contacts/contactService.ts
  (16,9): error TS2322: Type 'Promise<void | Contact[]>' is not assignable to type 'Promise<Contact[]>'.

fail: Microsoft.AspNetCore.NodeServices[0]

    Type 'void | Contact[]' is not assignable to type 'Contact[]'.

fail: Microsoft.AspNetCore.NodeServices[0]

      Type 'void' is not assignable to type 'Contact[]'.

  ERROR in ./ClientApp/app/components/contacts/contactService.ts
  (23,9): error TS2322: Type 'Promise<void | Contact>' is not assignable to type 'Promise<Contact>'.

fail: Microsoft.AspNetCore.NodeServices[0]

    Type 'void | Contact' is not assignable to type 'Contact'.

fail: Microsoft.AspNetCore.NodeServices[0]

      Type 'void' is not assignable to type 'Contact'.

  ERROR in ./ClientApp/app/components/contacts/contactService.ts
  (30,9): error TS2322: Type 'Promise<void | Contact>' is not assignable to type 'Promise<Contact>'.

And I'm so new to TS that I don't know how to being fixing this.

[ERROR] Cannot find module './wwwroot/dist/vendor-manifest.json' in Aurelia project

Hello

Can you say, why do I run the 'webpack' command or running 'Aurelia project' with VS have an error ?

C:\Users\...\Desktop\ASP.NET Core Basics\src\Aurelia>webpack
module.js:471
    throw err;
    ^

Error: Cannot find module './wwwroot/dist/vendor-manifest.json'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (C:\Users\...\Desktop\ASP.NET Core Basics\src\Aurelia\webpack.config.js:27:23)
    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 requireConfig (C:\Users\...\AppData\Roaming\npm\node_modules\webpack\bin\convert-argv.js:96:18)
    at C:\Users\...\AppData\Roaming\npm\node_modules\webpack\bin\convert-argv.js:109:17
    at Array.forEach (native)
    at module.exports (C:\Users\...\AppData\Roaming\npm\node_modules\webpack\bin\convert-argv.js:107:15)

C:\Users\...\Desktop\ASP.NET Core Basics\src\Aurelia>

1
2

Can you help me for run 'Aurelia project' ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.