JonnyBGod / angular2-webpack-advance-starter

An advanced Angular2 Webpack Starter project with support for ngrx/store, ngrx/effects, ng2-translate, angulartics2, lodash, NativeScript (*native* mobile), Electron (Mac, Windows and Linux desktop) and more.
https://jonnybgod.github.io/angular2-webpack-advance-starter/
MIT License
48 stars 12 forks source link

Issue getting Dev environment up #8

Open esperancaJS opened 8 years ago

esperancaJS commented 8 years ago

Note: for support questions, please use one of these channels: Chat: Gitter

sh: 1: webpack-dev-server: not found

It should start the development environment

Ubuntu 16 NPM 3.10.8 Node v6.8.1 (using NVM, base Node v4.5)

thomascayne commented 7 years ago

@PedroEsperanca I concur. Also, electron-debug is not launching from within: main.desktop.ts

if (process.env.NODE_ENV === 'development') {
  require('electron-debug')({enabled: true, showDevTools: false}); //<-- modified
}

require('electron-debug')({enabled: true, showDevTools: false}); // <!-- works outside if check

Now, devtools is showing the following: Failed to load resource: net::ERR_FILE_NOT_FOUND

polyfill.dlls.js vendor.dll.js polyfills.bundle.js main.bundle.js vendor.bundle.js

There are pointing to: file:///D:/. Web page: localhost:3000 is the same ERR_FILE_NOT_FOUND. How to resolve I do not know.

Update: The above is resolved by changing baseUrl in config/advance/webpack.common.js and config/webpack.common.js to './' See: #1769

This is a great package. 💯%.

Let the happy coding begin.