Coder Social home page Coder Social logo

ankitsharma-007 / crud.aspcore.reactjs.webapi.ef Goto Github PK

View Code? Open in Web Editor NEW
84.0 14.0 80.0 493 KB

CRUD Operations in ASP.NET Core application using React.js , Web API and Entity Framework core DB first approach with the help of VS 2017.

TypeScript 45.89% CSS 4.48% C# 38.72% JavaScript 10.91%
asp-net-core entity-framework-core article crud sqlserver webapi reactjs ankit-sharma

crud.aspcore.reactjs.webapi.ef's Issues

Cannot find module 'aspnet-webpack'

I appreciate the time you put into this tutorial. Correct me if I'm wrong though but Microsoft are making SpaServices obselete and that includes the webpack middleware which is faling to load. There is no difference if I run app in Debug or Release.

NodeInvocationException: Webpack dev middleware failed because of an error while loading 'aspnet-webpack'. Error was: Error: Cannot find module 'aspnet-webpack'    

If this is the case and not merely a newb mistake on my part then you may want to alter or hide the tutorial until then. Would save others the heartache of using something that's no longer supported.

AddEmployee.tsx issue

I'm new to React and trying to build the application with your coding steps. But I have an issue with AddEmployee.tsx code. At the execution of the project, it's throwing an issue saying the following:

ERROR in [at-loader] ./ClientApp/components/AddEmployee.tsx:14:17
TS7006: Parameter 'props' implicitly has an 'any' type.
ERROR in [at-loader] ./ClientApp/components/AddEmployee.tsx:25:21
TS7017: Element implicitly has an 'any' type because type '{}' has no index signature.
ERROR in [at-loader] ./ClientApp/components/AddEmployee.tsx:60:24
TS7006: Parameter 'event' implicitly has an 'any' type.
ERROR in [at-loader] ./ClientApp/components/AddEmployee.tsx:90:26
TS7006: Parameter 'e' implicitly has an 'any' type.

Code:

This is defined at the code
import { RouteComponentProps } from 'react-router';

Also following lines indicates errors:
Lie 15: constructor(props) {
Line 25: var empid = this.props.match.params["empid"];
Line 60: private handleSave(event) {
Line 90: private handleCancel(e) {

I have got the source code from GitHub. How to solve these issues?

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.