Giter VIP home page Giter VIP logo

vyakymenko / angular-seed-express Goto Github PK

View Code? Open in Web Editor NEW
105.0 15.0 25.0 8.19 MB

[DEPRECATED, Please use https://github.com/vyakymenko/angular-express] Extensible, reliable and modular starter project for Angular 7 with statically typed build AoT compilation, Express server and PM2 Daemon.

Home Page: https://github.com/vyakymenko/angular-seed-express

License: MIT License

TypeScript 90.07% JavaScript 6.40% CSS 1.48% HTML 2.04%
angular-applications aot-compilation seed rollup typescript angular express pm2 nodejs

angular-seed-express's People

Contributors

aboeglin avatar arnaudpel avatar daniru avatar eppsilon avatar fr-esco avatar gkalpak avatar greenkeeper[bot] avatar hankehly avatar jesperronn avatar joshwiens avatar karasuni avatar karlhaas avatar kiuka avatar ludohenin avatar markwhitfeld avatar mgechev avatar nareshbhatia avatar nathanwalker avatar netstart avatar nhutcorp avatar nightapes avatar patrickmichalina avatar robstoll avatar ryzy avatar salemdar avatar sasikumardr avatar shyam-chen avatar tarlepp avatar thedondope avatar vyakymenko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-seed-express's Issues

Name-List error

After npm install && npm start my browser opens correctly. The page is show, but when trying to access http://localhost:9001/api/name-list the server throws an error

NameListService.prototype.handleError(error=Response { _body=Event error, status=0, ok=false, mehr...})name-li...vice.js (Zeile 29)
CatchSubscriber.prototype.error(err=Object { type="object"})catch.js (Zeile 51)
Subscriber.prototype._error(err=Object { type="object"})Subscriber.js (Zeile 127)
Subscriber.prototype.error(err=Object { type="object"})Subscriber.js (Zeile 101)
XHRConnection/this.response</onError(err=Object { type="object"})http.umd.js (Zeile 1167)
Zone</ZoneDelegate</ZoneDelegate.prototype.invokeTask(targetZone=Object { type="object"}, task=Object { type="object"}, applyThis=Object { type="object"}, applyArgs=Object { type="object"})zone.js...8994086 (Zeile 356)
NgZoneImpl/this.inner<.onInvokeTask(delegate=Object { type="object"}, current=Object { type="object"}, target=Object { type="object"}, task=Object { type="object"}, applyThis=Object { type="object"}, applyArgs=Object { type="object"})core.umd.js (Zeile 9091)
Zone</ZoneDelegate</ZoneDelegate.prototype.invokeTask(targetZone=Object { type="object"}, task=Object { type="object"}, applyThis=Object { type="object"}, applyArgs=Object { type="object"})zone.js...8994086 (Zeile 355)
Zone</Zone</Zone.prototype.runTask(task=Object { type="object"}, applyThis=Object { type="object"}, applyArgs=Object { type="object"})zone.js...8994086 (Zeile 256)
ZoneTask/this.invoke()

Failed to load the initial page

I'm submitting a ... (check one with "x")

[X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

Get the latest from Repo. npm install and then npm start. It stops at loading. It failed to load rxjs/observable package. Notice, the code seems do not have the latest changes from its parent repo. In its parent repo, it adds an new task to temporarily fix an angular issue: https://github.com/mgechev/angular-seed/blob/master/tools/tasks/seed/build.bundle.rxjs.ts

Expected behavior

It should continue to display the starting page
Minimal reproduction of the problem with instructions

It should continue to display the starting page
What is the motivation / use case for changing the behavior?

It should continue to display the starting page
Please tell us about your environment:

I use MAC Book.

  • Angular Seed Version: aaaaf75

f614eec

  • Node: node --version = 6.3.0

Dev vs Prod styling discrepancies

This is for the latest release tag 6.0.1
[x ] bug report => search github for a similar issue or PR before submitting

Current behavior
npm run build.dev creates a non minified set of files, and runs perfectly in browser.
npm run build.prod currently appears to create a CSS with missing pieces
The symptom, is that the webpages are not styled correctly and FontAwsome icons missing.

Expected behavior
That the web page appears with the same styling in both dev and prod modes.

Minimal reproduction of the problem with instructions
As above, a project with bootstrap and fontawesome...

What is the motivation / use case for changing the behavior?
Huge motivation, going to have to roll back my project.

Please tell us about your environment:
Seed-express 6.0.1
Mac 10.13.6 (17G65)
Webstorm latest
Npm 6+
Node 9.10.1

Any pointers here would be really appreciated!!
Thanks

can not found FB.login() ?

when i was using typing.json ,i used fbsdk defination for facebook login then i updated my seed.
then delete the typing.json file and all other modules move to package.json, using npm install @types/abc --save
but all modules not available on @types which is available on typings . what should i do?

Add config for backend

in config i have development.json,production.json and staging.json ,Even though i set my ENV_NODE to production by using command 'export NODE_ENV=production' the values i am getting are all of development.
The way i run my project is as follows
1)In first tab
export NODE_ENV=production
npm start
2)In second tab
export NODE_ENV=production
node app.server.prod.js

does angular 4.2.3 seed express supports lazy loading feature on prod mode? If not how can we configure it

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

  • Angular Seed Version: aaaaf75
  • Node: node --version =

How to build SCSS in angular-seed-express 4.2.3?

I'm submitting a ... (check one with "x")

Error: ENOENT: no such file or directory, open 'D:\test_repo\c-next\dist\tmp\app\framework\dashboard\dashboard.component.css'
    at Error (native)
    at Object.fs.openSync (fs.js:640:18)
    at Object.fs.readFileSync (fs.js:508:33)
    at getFileData (D:\test_repo\c-next\node_modules\gulp-inline-ng2-template\parser.js:284:17)
    at D:\test_repo\c-next\node_modules\gulp-inline-ng2-template\parser.js:248:22
    at D:\test_repo\c-next\node_modules\async\dist\async.js:3853:24
    at replenish (D:\test_repo\c-next\node_modules\async\dist\async.js:946:17)
    at D:\test_repo\c-next\node_modules\async\dist\async.js:950:9
    at eachOfLimit (D:\test_repo\c-next\node_modules\async\dist\async.js:975:24)
    at D:\test_repo\c-next\node_modules\async\dist\async.js:980:16


**Current behavior**
Component Structure is as follows:
home.component.ts
home.component.html
home.component,sccs
home.component.spec.ts

**Expected behavior**
<!-- Describe what the behavior would be without the bug. -->

**Minimal reproduction of the problem with instructions**
I am unable to build and use SCSS files in angular-seed-express 4.2.3.
I want you help me to sort out this issue.

**What is the motivation / use case for changing the behavior?**
import { EnvConfig } from './env-config.interface';

const ProdConfig: EnvConfig = {
  ENV: 'PROD',
  API: '',
  ENABLE_SCSS: true
};

export = ProdConfig;

and

// Feel free to extend this interface
// depending on your app specific config.
export interface EnvConfig {
  API?: string;
  ENV?: string;
  VERSION?: string;
  ENABLE_SCSS: boolean;
}

I have added  ENABLE_SCSS. But It  didn's get expected result.
**Please tell us about your environment:**
 Operating system: Windows 8, 
IDE: WebStrom

* **Angular Seed Version:** 
4.2.3

* **Node:** `node --version` = v6.9.4

TypeError: Cannot read property 'animations' of undefined

version 2.0.1

/node_modules/@angular/compiler/bundles/compiler.umd.js:8766
template.animations.forEach(function (entry) { triggerLookup.add(entry.name); });
^
TypeError: Cannot read property 'animations' of undefined
at TemplateParseVisitor._validateElementAnimationInputOutputs (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/@angular/compiler/bundles/compiler.umd.js:8766:19)
at TemplateParseVisitor.visitElement (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/@angular/compiler/bundles/compiler.umd.js:8749:20)
at Element.visit (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/@angular/compiler/bundles/compiler.umd.js:4688:78)
at /home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/@angular/compiler/bundles/compiler.umd.js:4703:31
at Array.forEach (native)
at visitAll (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/@angular/compiler/bundles/compiler.umd.js:4702:13)
at TemplateParser.tryParse (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/@angular/compiler/bundles/compiler.umd.js:8492:24)
at Object.exports.parseTemplate (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/codelyzer/angular/templateParser.js:14:23)
at InputMetadataWalker.Ng2Walker.visitClassDecorator (/home/pooja/Desktop/development2.0/tpl-web-fullstack-seed/node_modules/codelyzer/angular/ng2Walker.js:115:62)
at Array.forEach (native)

gulp task "watch.dev" not working for backend code which is in src/server directory.

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

watcher for backend code is not working. Need Help

Note: for front end code which is src/client directory, whenever i made any change "watch.dev" is working fine.
Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:
OS: windows8

  • Angular Seed Version: 4.2.3
  • Node: node --version = v6.9.4

Support for SSR - Server Side Rendering

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ x ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior
App works perfectly, however, on load if you view the page source, you only get back the basic loading... div. Not great for social sharing or SEO.

Expected behavior
Ideally, utilizing server side rending (provided by the ServerModule in @angular/platform-server) the page would be served from the server initially and then transitioned to the browser code once downloaded.

Minimal reproduction of the problem with instructions

Once the homepage loads, view source (not inspect) and you will see the DOM is not visible for the components

What is the motivation / use case for changing the behavior?
Improves performance / time to first paint of page
Improved SEO and social sharing

Please tell us about your environment:

  • Angular Seed Version: aaaaf75
  • Node: node --version = v6.11.1

An in-range update of cssnano is breaking the build 🚨

The devDependency cssnano was updated from 4.1.5 to 4.1.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

cssnano is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Release Notes for v4.1.6

4.1.6

Bug Fixes

  • postcss-merge-longhand doesn't throw error when merge a border property.
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

npm start livereload to src/server

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[X] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

npm start does not watches files and uses livereload on src/server code. Is there some way to active it?

Debug server side code

Hi, how can i debug the server side code in webstorm?
For the client i just need to setup a new javascript debug config and i think it will also work for server side but i think we also need the map files in dist folder....

serve.prod.exp is failing

I'm submitting a ... (check one with "x")

[X] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

When I am running npm run serve.prod.exp, the script seems to be failing.

Minimal reproduction of the problem with instructions

Clone the latest changes and run npm run serve.prod.exp

Please tell us about your environment:

Mac OS, webstrom

  • Node: node --version = v6.9.1

HTTP/2

hello,I am trying to use Http/2 in project.i have mongodb as database.i have installed spdy .has any one implimented it.needs some help...

Compatible node version?

[ x] bug report => search github for a similar issue or PR before submitting

Current behavior
Download the current version of seed, do the npm install

  • npm run build.prod
  • npm run serve.prod
    Currently the webpage opens with the page "Loading..."
    No errors but the bootstrapping does not appear to be working.

Expected behavior
The sample page with the scientists should come up.

Minimal reproduction of the problem with instructions
As above

Please tell us about your environment:
Mac OS 10.14.2
Webstorm 18.3
npm 6.9.0

  • Angular Seed Version: ea47591
  • Node: node --version = I have tried multiple versions here with different behavior.
    I have tried 6.9.0 & 10.15.3 & 11.12.0 to name a few.
    Does not want to work for me.
    Would welcome a pointer in the right direction.
    Thanks!

Adding @angular/Materials into a seed project

Hello,

[x] bug report - only in the sense that using my knowledge of V6, does not seem to work with V7.x

  • and the support channel points to the seed-project, which has been deprecated.

Current behavior
When adding the module as follows in the project config.

const additionalPackages: ExtendPackages[] = [{
      name: '@angular/material',
      // Path to the package's bundle
      path: 'node_modules/@angular/material/bundles/material.umd.js'
    }];

this.addPackagesBundles(additionalPackages);

The npm run build.dev and build.prod complete without error.
The npm start however can't find the module.

Expected behavior
The the module is found and loaded.

Minimal reproduction of the problem with instructions
npm install of angular material,
followed by above project reference, npm start the project.

Thanks
Eti

Angular 2 Redis Integration

Client-Server ng2 Redis integration:

  • Server side service name-list.service.ts.
  • Get (client) name-list, parsed from Redis
  • Add (client) name to name-list.
  • Delete (client) name from name-list.

Create server service for some new test CRUD game/app.

  • App/Game proposition.
  • Server side service for app/game.
  • Client-side logic.

An in-range update of browserslist is breaking the build 🚨

The devDependency browserslist was updated from 4.5.5 to 4.5.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

browserslist is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Backend debugging

What steps will reproduce the problem?

  1. I have two directories in my source folder one with Server which contains backend code written in node.js with typescript. I have used gulp task manager & express server to run backend code. My node version is v6.8.1
    & npm version is 3.10.7. Second directory is Client which contains front end code written in angular 2 - 2.0 version.
  2. I have attached screenshot of my project structure. ( Screenshot_attachment : seed_project_1, seed_project_2, seed_project_3)
    My Nodejs Sever directory structure is ( Screenshot_attachment : project_node_structure)
  3. When I compile my project with 'npm start', transpiled files are created inside 'Dist' folder as per shown in Screenshot. ( Screenshot_attachment : project_node_compiled )
  4. Screenshot with my Node.js Debug configuration. ( Screenshot_attachment : nodejsDebuggerConfiguration )
  5. Added a breakpoints in Javascript file and press Debug.
  6. Here is I am getting Error for v8debug in WebStorm debugger console but not in terminal. ( Screenshot_attachment : user_controller_debug )
  7. I started my front-end & when I hit login functionality it simply gives error for Server Connection. It means my server has not started yet, but in debugger it shows mongodb connection. (Screenshot_attachment : user_controller_debug)

What is the expected result ?

I want WebStorm to stop on breakpoint inside of the .ts/.js file and should be able to inspect the typescript variables as per when I debug node.js with pure javascript. ( In that earlier project, I have used separate single directory for backend code in node.js with typescript. )

What happens instead?

nothing happens, IDE doesn't stop on any typescript/Javascript file breakpoints. Though it shows green 'right' mark inside breakpoint circle (screenshot). But I am unable to Inspect the variables.

Any additional information needed is below :

I'm using Ubuntu,with webstorm IDE running grunt task.
Node.js Version : v6.8.1
Npm version : 3.10.7
Front-End : Angular 2 version 2.0
Back-End : Node.js with Typescript
nodejsdebuggerconfiguration
project_node_compiled
project_node_structure
seed_project_1
seed_project_2
seed_project_3
settings_typescript
user_controller_debug

Cannot read property 'SEED_TASKS_DIR' of undefined

hi, i am going to migrate rc6 to 2.0 stable (all latest changes are pull into my seed)but stuck with error

/Users/Desktop/myWorkspace/tpl-web-fullstack-seed/gulpfile.ts:9
loadTasks(Config.SEED_TASKS_DIR);
^
TypeError: Cannot read property 'SEED_TASKS_DIR' of undefined
at Object. (/Users/techprimelab/Desktop/myWorkspace/tpl-web-fullstack-seed/gulpfile.ts:9:17)
at Module._compile (module.js:541:32)
at Module.m._compile (/Users/techprimelab/Desktop/myWorkspace/tpl-web-fullstack-seed/node_modules/ts-node/src/index.ts:299:25)
at Module._extensions..js (module.js:550:10)
at Object.require.extensions.(anonymous function) as .ts
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
can any one help me out

also when npm install:-
~postinstall: cannot run in wd %s %s (wd=%s) [email protected] gulp check.versions && gulp build.bundle.rxjs && npm prune && gulp webdriver

Dev server with BrowserSync support

Hi there, i'm using your seed with mongodb and i just have a small question (I'm new in web dev so please expect some newbie questions)

Basically i just want to know if it is possible to use BrowserSync for server and client at same time...probably you added a new express instance to avoid more changes in the structure of the original seed project.

Right now i have 2 extra npm commands:

...
    "fullstack.server.dev": "gulp build.dev --color --config-env dev && node app.server.dev",
    "fullstack.server.prod": "gulp build.dev --color --config-env prod && node app.server.prod",
...

but i want to use BrowserSync to run the dev server, maybe you can add some commented 'browser-sync' override to project.config.ts.

anyway, do you know how can i add browsersync support to your express server instance?

Shared source between client and server?

Is there interest in having some files in source code (e.g. interfaces) that could be used by both client and server?

The seed project manages the appropriate compilation/bundling to the server and client...
I have managed to create such a solution if there is interest.
Thanks
Eti

Build Errors SHA - 78def1e893a1fdad14a48988902e24382d8fa483

[ x] bug report => search github for a similar issue or PR before submitting
I'd be happy to do a pull request, but would need guidance on the procedure...

First error is obvious - line 14 defines _clientDir as a constant set to dev. Then in the production section line 68, it tries to reset it to prod.
_src/server/index.ts(68,5): error TS2540: Cannot assign to 'clientDir' because it is a constant or a read-only property.

Second error - Perhaps a typecheck line 96? as per this: https://stackoverflow.com/questions/30621139/typescript-union-type-not-working
src/server/index.ts(97,37): error TS2339: Property 'port' does not exist on type 'string | AddressInfo'.

The last errors, seem to be addressed by this - angular/angular#24245
node_modules/@types/node/index.d.ts(167,14): error TS2687: All declarations of 'observable' must have identical modifiers.
node_modules/rxjs/internal/symbol/observable.d.ts(4,9): error TS2687: All declarations of 'observable' must have identical modifiers.

Current behavior
download the latest code and do: npm start
During the build there are 4 errors listed.

Expected behavior
the app should build and run without error.

Please tell us about your environment:

Running the seed project under webstorm with tsc 2.3.4

  • Angular Seed Version:
    78def1e

  • Node: node --version =
    9.10.1

Problem running 'npm run build.prod'

When I run ''npm run build.prod", I get the following error


tools/tasks/seed/build.index.prod.ts (8,3): Module '"/home/07125220690/projects/tradingman/tools/config"' has no exported member 'APP_DEST'. (2305)
tools/tasks/seed/build.index.prod.ts (9,3): Module '"/home/07125220690/projects/tradingman/tools/config"' has no exported member 'APP_SRC'. (2305)

Looking at the file seed.config.ts indeed there is no 'APP_DEST' or 'APP_SRC' declared.

progressive web app with offline ?

i am working for offline functionality with this starter app. I did all requirements which require for offline but i failed to caching all that resources in browser cache using service-worker.js. I used sw-precache for that.

changes with gulpfile.ts

  1. gulp.task('build.prod', (done: any) =>
    runSequence('check.tools',
    'clean.prod',
    //'tslint',
    //'css-lint',
    'build.assets.prod',
    'build.html_css',
    'copy.prod',
    'copy.server.js.prod',
    'build.server.prod',
    'build.js.prod',
    'build.bundles',
    'build.bundles.app',
    'minify.bundles',
    'build.index.prod',
    'copy.server.assets',
    'generate-service-worker',
    done));

  2. gulp.task('generate-service-worker', (callback:any) => {
    var path = require('path');
    var swPrecache = require('sw-precache');
    var rootDir = 'dist/prod/client/';
    //var rootDir = Config.APP_CLIENT_DEST;
    util.log('---------------------generate-service-worker-----------root-directoryName---',rootDir);
    swPrecache.write(${rootDir}/service-worker.js, {
    staticFileGlobs: [rootDir + '/**/*.{js,html,css,png,jpg,gif,svg,eot,ttf,woff,json}'],
    stripPrefix: rootDir
    }, callback);
    });

on prod build -> after above task service-worker.js created but not worked. whats going wrong i dont know
any other seed config required ?
any suggestion?

angular-seed-express 4.2.3 | got error when fire npm install command

I'm submitting a ... (check one with "x")

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

[15:25:55] Error on fetch for rxjs/operators.js at file:///opt/atlassian/pipelines/agent/build/node_modules/rxjs/operators.js
Loading rxjs/Rx.js
Loading dist/tmp/app/shared/services/http/custom.http.js
Loading dist/tmp/app/app.module.js
Loading dist/tmp/app/main.js
Error: ENOENT: no such file or directory, open '/opt/atlassian/pipelines/agent/build/node_modules/rxjs/operators.js'
at Error (native)

Using dependecy as:
"rxjs": "^5.2.0",

Expected behavior

Minimal reproduction of the problem with instructions

What is the motivation / use case for changing the behavior?

Please tell us about your environment:
OS: windows8

  • Angular Seed Version: aaaaf75
    4.2.3

  • Node: node --version = v6.9.4

Error on fetch for angular2-indexeddb.js ?

hi,
I stuck with configuration of indexdb on production build it get Error on fetch for angular2-indexeddb.js.It work without error on development.i cant understand how to solve this, could u please help me out.....

i tried following project.config.ts but it not worked :-
SYSTEM_CONFIG_DEV: any = {
defaultJSExtensions: true,
transpiler: 'typescript', typescriptOptions: { emitDecoratorMetadata: true },
packageConfigPaths: [
.
.
.
.
'dragula': 'node_modules/dragula/dist/dragula.min.js',
'angular2-indexeddb':'node_modules/angular2-indexeddb/',
'crypto-js': 'node_modules/crypto-js/crypto-js.js',
'app/': '/app/',
// For test config
'dist/dev/': '/base/dist/dev/',
'': 'node_modules/'
},
packages: {
'angular2-indexeddb': {
main: 'index.ts',
defaultExtension: 'ts'
}
}
};

on gulp build.prod shows following error:-

[18:45:25] 'build.bundles.app' errored after 2.82 s
[18:45:25] Error on fetch for angular2-indexeddb.js at file:///home/node_modules/angular2-indexeddb.js
Loading dist/tmp_client/app//db-service/db.service.js
Loading dist/tmp_client/app/app.module.js
Loading dist/tmp_client/app/main.js
Error: ENOENT: no such file or directory, open '/home/node_modules/angular2-indexeddb.js'
at Error (native)
[18:45:25] 'build.prod' errored after 33 s
[18:45:25] Error in plugin 'run-sequence(build.bundles.app)'
Message:
Error on fetch for angular2-indexeddb.js at file:///home/node_modules/angular2-indexeddb.js
Loading dist/tmp_client/app/qeasily/framework/db-service/db.service.js
Loading dist/tmp_client/app/app.module.js
Loading dist/tmp_client/app/main.js
ENOENT: no such file or directory, open '/home/node_modules/angular2-indexeddb.js'
Details:
originalErr: Error: ENOENT: no such file or directory, open '/home/node_modules/angular2-indexeddb.js'
Stack:
Error on fetch for angular2-indexeddb.js at file:///home/chetan/node_modules/angular2-indexeddb.js
Loading dist/tmp_client/app/framework/db-service/db.service.js
Loading dist/tmp_client/app/app.module.js
Loading dist/tmp_client/app/main.js
Error: ENOENT: no such file or directory, open '/home/chetan/node_modules/angular2-indexeddb.js'
at Error (native)

Production build rxjs resolution issues - ref 2118 in parent seed

I'm submitting a ... (check one with "x")

For Release 6.0.1:
[x ] bug report => search github for a similar issue or PR before submitting
The same issue did exist in the parent seed issue - 2118. This issue was closed, however it appears that a couple of folks are having this problem 26 Jan

Current behavior

Same as 2118 - during a prod build, SystemJS is not able to resolve rxjs/operators
build.dev works fine.

Expected behavior

Build without error.

Minimal reproduction of the problem with instructions
npm run build.prod with rxjs imports in the project

Please tell us about your environment:

mac, webstorm, npm, Seed 6.0.1

  • Node: node --version = 9.10.1

Thanks in advance
Eti

How can i build prod AOT?

When I build.prod.aot, I got this error. How can i build prod AOT? Help me.

[14:22:49] Starting 'compile.ahead.prod'...
Error: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 285:19 in the original .ts file), resolving symbol AppModule in D:/test_repo/c-next/dist/tmp/app/app.module.ts
at positionalError (D:\test_repo\demo\node_modules@angular\compiler@angular\compiler.es5.js:25236:2)
Compilation failed

node: v6.9.4
npm: 4.2.0

Thanks

some server enchantment thoughts

Currently server's code is written in js. We could step up the game and use TypeScript, just like the client side does it.
This would require the build to output files in the "dist" folder, which means things would have to be rearranged a bit in there (currently prod build puts whole client code in the root of the dist folder. We'd have to put it in the "/dist/client").

Another improvement would be setting up a watch task on server files and restarting server on change.

An in-range update of yargs is breaking the build 🚨

The devDependency yargs was updated from 13.2.2 to 13.2.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

yargs is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Commits

The new version differs by 14 commits.

  • a6e67f1 chore(release): 13.2.4
  • fc13476 chore: update standard-verison dependency
  • bf46813 fix(i18n): rename unclear 'implication failed' to 'missing dependent arguments' (#1317)
  • a3a5d05 docs: fix a broken link to MS Terminology Search (#1341)
  • b4f8018 build: add .versionrc that hides test/build
  • 0c39183 chore(release): 13.2.3
  • 08e0746 chore: update deps (#1340)
  • 843e939 docs: make --no- boolean prefix easier to find in the docs (#1338)
  • 84cac07 docs: restore removed changelog of v13.2.0 (#1337)
  • b20db65 fix(deps): upgrade cliui for compatibility with latest chalk. (#1330)
  • c294d1b test: accept differently formatted output (#1327)
  • ac3f10c chore: move .hbs templates into .js to facilitate webpacking (#1320)
  • 0295132 fix: address issues with dutch translation (#1316)
  • 9f2468e doc: clarify parserConfiguration object structure (#1309)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

"e2e" npm script does not spin up express server, while "e2e" gulp task does

I'm submitting a ...

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior
When running the e2e npm script, the tests fail because the server isn't up. If I run the server in production mode with node app.server.prod.js at the same time, it does work. If I run the e2e gulp task instead, it does work.

Expected behavior
When running the e2e npm script, the tests pass because the server is up. The e2e gulp task spins up its own express server, as per defined in tools/tasks/seed/e2e.ts, so it should be expected that the e2e npm script does too.

An additional question: are we supposed to use the npm scripts, or the gulp tasks directly?

Minimal reproduction of the problem with instructions

  • Run npm run e2e
    The tests fail to run, because the express server isn't up.

What is the motivation / use case for changing the behavior?
Making it not necessary for the express server to be launched separately, since (apparently) that was the original intent.

Please tell us about your environment:
I'm using Ubuntu 16.10, npm 3.10.10 and node v6.10.3.

  • Angular Seed Version: aaaaf75
    I'm not sure how to get this information, but I cloned the project yesterday from the master branch.

  • Node: node --version = 6.10.3

An in-range update of compression is breaking the build 🚨

The dependency compression was updated from 1.7.3 to 1.7.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

compression is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Release Notes for 1.7.4
  • deps: compressible@~2.0.16
    • Mark text/less as compressible
    • deps: mime-db@'>= 1.38.0 < 2'
  • deps: on-headers@~1.0.2
    • Fix res.writeHead patch missing return value
  • perf: prevent unnecessary buffer copy
Commits

The new version differs by 33 commits.

There are 33 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

build.prod unsuccessful

Hello -
I was trying to run build.prod, but it ended up with the following error -
[21:30:54] Error on fetch for rxjs/operators.js at file:///Users/kiranchowdhury/Documents/angular-seed-express/node_modules/rxjs/operators.js
Loading @angular/core/bundles/core.umd.js
Loading dist/tmp/app/main.js
Error: ENOENT: no such file or directory, open '/Users/kiranchowdhury/Documents/angular-seed-express/node_modules/rxjs/operators.js'

However, build.dev runs successfully.

Aot compilation error?

Hi,

If i hit npm run build.prod it getting below error. i dont undestand what to do next.

"dependencies": {
"@"-
"angular/common": "^2.1.2",
"angular/compiler": "^2.1.2",
"angular/core": "^2.1.2",
"angular/forms": "^2.1.2",
"angular/http": "^2.1.2",
"angular/platform-browser": "^2.1.2",
"angular/platform-browser-dynamic": "^2.1.2",
"angular/router": "^3.1.2",

and

"angular/compiler-cli": "~2.1.2",
"angular/platform-server": "~2.1.2",
"angular/tsc-wrapped": "0.3.0",

my node version is:~ v8.2.1
my npm version is:~v5.3.0

Please help me out........

[15:58:46] Starting 'compile.ahead.prod'...
can't resolve module @angular/core/src/di/opaque_token from /home/gk/dist/tmp_client/index.ts
TypeError: Cannot read property 'parse' of undefined
at ReflectorHost.normalizeAssetUrl (/home/chetan/gk/modules/@angular/compiler-cli/src/reflector_host.ts:70:30)
at ReflectorHost.findDeclaration (/home/chetan/gk/modules/@angular/compiler-cli/src/reflector_host.ts:175:29)
at StaticReflector.initializeConversionMap (/home/gk/modules/@angular/compiler-cli/src/static_reflector.ts:183:34)
at new StaticReflector (/home/gk/modules/@angular/compiler-cli/src/static_reflector.ts:72:57)
at Function.CodeGenerator.create (/home/gk/modules/@angular/compiler-cli/src/codegen.ts:112:29)
at codegen (/home/gk/tools/tasks/seed/compile.ahead.prod.ts:14:26)
at Object.main (/home/gk/tools/@angular/tsc-wrapped/src/main.ts:44:12)
at module.exports (/home/gk/tools/tasks/seed/compile.ahead.prod.ts:40:7)
at AnonTask.run (/home/c-next/gk/tools/utils/seed/tasks_tools.ts:31:18)
at Gulp. (/home/gk/tools/utils/seed/tasks_tools.ts:60:27)
Compilation failed

An in-range update of nodemon is breaking the build 🚨

The dependency nodemon was updated from 1.18.5 to 1.18.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

nodemon is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Release Notes for v1.18.6

1.18.6 (2018-11-05)

Bug Fixes

Commits

The new version differs by 1 commits.

  • 521eb1e fix: restart on change for non-default signals (#1409) (#1430)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

An in-range update of karma is breaking the build 🚨

The optionalDependency karma was updated from 3.1.1 to 3.1.2.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

karma is a optionalDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Release Notes for v3.1.2

Bug Fixes

Features

Commits

The new version differs by 11 commits.

  • 7d4d347 chore: release v3.1.2
  • 5077c18 chore: update contributors
  • fb05fb1 fix(server): use flatted for json.stringify (#3220)
  • 2682bff feat(docs): callout the key debug strategies. (#3219)
  • 4e87902 fix(changelog): remove release which does not exist (#3214)
  • 30ff73b fix(browser): report errors to console during singleRun=false (#3209)
  • 5334d1a fix(file-list): do not preprocess up-to-date files (#3196)
  • dc5f5de fix(deps): upgrade sinon-chai 2.x -> 3.x (#3207)
  • d38f344 fix(package): bump lodash version (#3203)
  • ffb41f9 refactor(browser): log state transitions in debug (#3202)
  • 240209f fix(dep): Bump useragent to fix HeadlessChrome version (#3201)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Run app in debug mode

I want to run a app in debug mode. but when I do same with below command
'node-debug start'
I get below error I am very new to node so can you help me with running app in debug mode where I can use chrome devtools to debug code and learn further

image

An in-range update of core-js is breaking the build 🚨

The dependency core-js was updated from 2.5.7 to 2.6.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

core-js is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details
  • ❌ continuous-integration/appveyor/branch: AppVeyor build failed (Details).

Release Notes for 2.6.0 - 2018.12.05
Commits

The new version differs by 11 commits.

  • f980318 2.6.0
  • f0b4154 add es6.regexp.exec as a direct dependency of _fix-re-wks for prevent breakage of existent code
  • a221e2a replace redefine by hide because of Chrome 38 bug with symbols conversion
  • 41e41e9 add some caps for the library version
  • 79db861 Merge pull request #458 from nicolo-ribaudo/backport-453
  • b0a70f9 Backport 41a8b12c8e641061e3576f89023f0a8fa903b81b
  • f77f88e Backport gh-453
  • 04b76e8 Merge pull request #435 from nicolo-ribaudo/backport-named-replace
  • 2b102b7 Polyfll named groups in RegExp#@@replace
  • fd64c48 Merge pull request #428 from nicolo-ribaudo/backport-es2015-regex
  • bc6ed09 Make RegExp#[Symbol.*] methods call exec

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Server Side Testing? & Update support location?

[x ] feature request
[ x] support request => Please do not submit support request here, instead see use gitter or [stackoverflow]

First question - The support link is geared towards the root seed project, which has been deprecated. Is there an alternate forum for seed-express? Hence my second question...

Second - I see karma and Jasmine set up for client side tests? Was there an intended testing framework intended to be used for writing tests on the server side (Node.js testing)?

Appreciate any help
Thanks
Eti

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.