I'm submitting a ... (check one with "x")
[x] bug report => check the README and search github for a similar issue or PR before submitting
[ ] support request => check the README and search github for a similar issue or PR before submitting
[ ] feature request
Current behavior
I clone the repo and run the following command:
yarn install
npm run build:spa-dev
npm run serve:spa
and the app cannot run as there's no file named spa-server.js in /.server folder.
Expected/desired behavior
It supposes to run the SPA at http:\\localhost:1337
.
Minimal reproduction of the problem with instructions
Just clone the repo and try to run the commands above.
The .server fold is empty after running the commands.
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
macOS Sierra 10.12.5, WebStorm 2017.1 , yarn v0.24.5
npm 3.10.10, node v6.11.0
- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
Here's the output:
seed git:(master) ✗ npm run build:spa-dev
> @ng-seed/[email protected] build:spa-dev /Users/mikema/workspace/angular/seed
> gulp clean && gulp build:spa-dev
[16:05:08] Using gulpfile ~/workspace/angular/seed/gulpfile.js
[16:05:08] Starting 'clean'...
[16:05:08] Starting 'clean:public'...
[16:05:08] Finished 'clean:public' after 23 ms
[16:05:08] Starting 'clean:server'...
[16:05:08] Finished 'clean:server' after 5.09 ms
[16:05:08] Starting 'clean:cache'...
[16:05:08] Finished 'clean:cache' after 803 μs
[16:05:08] Starting 'clean:temp'...
[16:05:08] Finished 'clean:temp' after 852 μs
[16:05:08] Finished 'clean' after 33 ms
[16:05:09] Using gulpfile ~/workspace/angular/seed/gulpfile.js
[16:05:09] Starting 'build:spa-dev'...
[16:05:09] Starting 'dummy'...
[16:05:09] Finished 'dummy' after 652 μs
[16:05:09] Starting 'bundle:spa-dev'...
DLL: Checking if DLLs are valid.
DLL: Rebuilding...
DLL: Bundling done, all DLLs are valid.
[at-loader] Using [email protected] from typescript and "tsconfig.json" from /Users/mikema/workspace/angular/seed/tsconfig.json.
================================== ng-router-loader ==================================
Importer: /Users/mikema/workspace/angular/seed/src/client/app/app.routes.ts
Raw Request: ./+home/home.module#HomeModule
Replacement: function() { return new Promise(function (resolve) { require.ensure([], function (require) { resolve(require('/Users/mikema/workspace/angular/seed/src/client/app/+home/home.module')['HomeModule']); });})}
======================================================================================
================================== ng-router-loader ==================================
Importer: /Users/mikema/workspace/angular/seed/src/client/app/app.routes.ts
Raw Request: ./+about/about.module#AboutModule
Replacement: function() { return new Promise(function (resolve) { require.ensure([], function (require) { resolve(require('/Users/mikema/workspace/angular/seed/src/client/app/+about/about.module')['AboutModule']); });})}
======================================================================================
[at-loader] Checking started in a separate process...
[at-loader] Ok, 3.773 sec.
Webpack: output 0.chunk.js
Webpack: output 1.chunk.js
Webpack: output app.bundle.js
Webpack: output vendor.bundle.js
Webpack: output polyfills.bundle.js
Webpack: output app.style.css
Webpack: output 0.map
Webpack: output 1.map
Webpack: output app.map
Webpack: output vendor.map
Webpack: output polyfills.map
Webpack: output ./config.json
Webpack: output ./i18n/en.json
Webpack: output ./i18n/tr.json
Webpack: output vendor.dll.js
Webpack: output vendor.dll.js.map
Webpack: output polyfills.dll.js
Webpack: output polyfills.dll.js.map
Webpack: output index.html
Webpack: finished
[16:05:30] Finished 'bundle:spa-dev' after 21 s
[16:05:30] Starting 'copy:index.html'...
[16:05:30] public/index.html
[16:05:30] 1 item
[16:05:30] Finished 'copy:index.html' after 176 ms
[16:05:30] Starting 'clean:artifacts'...
[16:05:30] Finished 'clean:artifacts' after 6.68 ms
[16:05:30] Finished 'build:spa-dev' after 21 s
seed git:(master) ✗ npm run serve:spa
> @ng-seed/[email protected] serve:spa /Users/mikema/workspace/angular/seed
> nodemon ./.server/spa-server.js
Usage: nodemon [nodemon options] [script.js] [args]
See "nodemon --help" for more.
Thank you and feel free to ask any further question.