Giter Site home page Giter Site logo

braincrumbz / awatts Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 154 KB

Asp.Net Core, WebPack, Angular Two, TypeScript Starter solution for Visual Studio 2015

Home Page: http://www.braincrumbz.com

License: MIT License

C# 28.80% HTML 1.88% JavaScript 41.17% CSS 4.99% TypeScript 23.16%

awatts's Issues

npm does not build webpack

C:\Users\joe\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client>npm run build

[email protected] build C:\Users\joe\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client
npm run build-dev

[email protected] prebuild-dev C:\Users\joe\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client
npm run clean

[email protected] clean C:\Users\joe\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client
rimraf ./buildOutput/* ./codegen/*

[email protected] build-dev C:\Users\joe\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client
webpack --config ./webpack.config.dev.js --display-error-details --progress --profile --colors
14713ms building modules 4ms add02099ms7221ms asse390ms emitting
events.js:160
throw er; // Unhandled 'error' event
^

Error: This socket is closed
at WriteStream.Socket._writeGeneric (net.js:683:19)
at WriteStream.Socket._write (net.js:734:8)
at doWrite (_stream_writable.js:334:12)
at writeOrBuffer (_stream_writable.js:320:5)
at WriteStream.Writable.write (_stream_writable.js:247:11)
at WriteStream.Socket.write (net.js:661:40)
at Console.warn (console.js:51:16)
at printErrorAndExit (C:\Users\joben\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:406:11)
at process.emit (C:\Users\joben\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client\node_modules\awesome-typescript-loader\node_modules\source-map-support\source-map-support.js:419:16)
at process._fatalException (bootstrap_node.js:292:26)

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build-dev"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build-dev: webpack --config ./webpack.config.dev.js --display-error-details --progress --profile --colors
npm ERR! Exit status 7
npm ERR!
npm ERR! Failed at the [email protected] build-dev script 'webpack --config ./webpack.config.dev.js --display-error-details --progress --profile --colors'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the awatts-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! webpack --config ./webpack.config.dev.js --display-error-details --progress --profile --colors
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs awatts-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls awatts-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\joben\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client\npm-debug.log

npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\Program Files (x86)\nodejs\node.exe" "C:\Program Files (x86)\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v7.1.0
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] build: npm run build-dev
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script 'npm run build-dev'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the awatts-client package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build-dev
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs awatts-client
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls awatts-client
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\joe\Desktop\Angular2\AWATTS-master\AWATTS-master\src\AWATTS\client\npm-debug.log

Any ideas? Please help - I am trying to setup your solution to learn. Thank you.

ASP.NET Core RC2?

I don't suppose you plan to put together an ASP.NET Core RC2 version of this?

Webpack Hot Module Replacement does only full reload

Browser developer console warning message:

[HMR] Cannot apply update. Need to do a full reload!
ast.js:372 [HMR] Error: Aborted because 296 is not accepted
    at hotApply (http://localhost:3000/js/main-bundle.js:380:31)
    at hotUpdateDownloaded (http://localhost:3000/js/main-bundle.js:293:13)
    at hotAddUpdateChunk (http://localhost:3000/js/main-bundle.js:273:13)
    at webpackHotUpdateCallback (http://localhost:3000/js/main-bundle.js:5:12)
    at http://localhost:3000/0.1786e95b5ad5341aa262.hot-update.js:1:1

Another possibly related error message:

[HMR] Update failed: Error: Manifest request to /69f18398c2cc3928d981.hot-update.json timed out.
    at XMLHttpRequest.request.onreadystatechange [as _onreadystatechange] (http://localhost:3000/js/vendor-bundle.js:34:23)
    at e.run (http://localhost:3000/js/vendor-bundle.js:18305:7718)
    at XMLHttpRequest.<anonymous> (http://localhost:3000/js/vendor-bundle.js:18305:7365)

At current time of writing, there seems to be problems in general between Webpack HMR and Angular 2 in other starter projects as well. AngularClass angular2 starter project just started trying an experimental angular2-hmr module. Other starter projects dropped HMR altogether.

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.