samppis / react.mvc6.sample Goto Github PK
View Code? Open in Web Editor NEWA sample React application using ASP.NET 5 MVC 6, TypeScript and Webpack
A sample React application using ASP.NET 5 MVC 6, TypeScript and Webpack
Lot of information is outdated. Please fix the article and the code.
For example, --ambient on typings is deprecated
webpack.config.js: resolve, extensions shouldn't have empty string ('')
wwwroot\client.js and wwwroot\server.js should have the correct path (./../Scripts/app)
Even then webpack doesn't work.
Hash: 81931e42b6266813a280
Version: webpack 1.12.9
Time: 256ms
Asset Size Chunks Chunk Names
client.bundle.js 2.05 kB 0 [emitted] client
server.bundle.js 2.05 kB 1 [emitted] server
[0] ./client.js 185 bytes {0} [built]
[0] ./server.js 185 bytes {1} [built]
+ 1 hidden modules
ERROR in ../~/expose-loader?Components!../Scripts/app/index.js
Module not found: Error: Cannot resolve 'file' or 'directory' WebAppTSReact\WebAppTSReact\Scripts\app\index.js in WebAppTSReact\WebAppTSReact\Scripts\app
@ ../~/expose-loader?Components!../Scripts/app/index.js 1:40-144
Even after all this, there is still a TS2665 error on react\index.d.ts
Error TS2665 Module augmentation cannot introduce new names in the top level scope.
Overall, there is no usable project generated by following the article or the code
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.