GithubHelp home page GithubHelp logo

gothinkster / angularjs-realworld-example-app Goto Github PK

View Code? Open in Web Editor NEW
452.0 452.0 371.0 97 KB

Exemplary real world application built with Angular 1.5 + ES6

Home Page: https://angularjs.realworld.io

JavaScript 62.70% HTML 37.30%

angularjs-realworld-example-app's People

Contributors

ericsimons avatar geromegrignon avatar ibarapascal avatar jaslina 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angularjs-realworld-example-app's Issues

Some console errors when running `gulp`

main.js:19066 Error: transition superseded() "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 Error: transition prevented() "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 Error: transition aborted() "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 Error: transition failed() "Possibly unhandled rejection: {}"(anonymous function) @ main.js:19066
main.js:19066 TypeError: Cannot read property 'type' of undefined()(anonymous function) @ main.js:19066

They seem to come from Angulars core module.

Error connecting to locally running NodeJS backend

I was trying to run this against a locally running node-express-realworld-example-app. When I do gulp, the articles don't load, and I get the following console error:

Error: transition superseded
    at $StateProvider.$get (main.js:2904)
    at Object.invoke (main.js:9544)
    at main.js:9336
    at getService (main.js:9485)
    at injectionArgs (main.js:9510)
    at Object.invoke (main.js:9536)
    at main.js:12651
    at forEach (main.js:4944)
    at Object.<anonymous> (main.js:12649)
    at Object.invoke (main.js:9544) "Possibly unhandled rejection: {}"

Steps to setup backend:

git clone https://github.com/gothinkster/node-express-realworld-example-app
cd node-express-realworld-example-app
yarn
export NODE_ENV=production
export MONGODB_URI=mongodb://mongo:[email protected]:17821/try-mongodb
export SECRET=secret
node ./app.js
# ... Verified localhost:3000/api with Postman tests

fix primordials is not defined error node12.x

To fix error

const { Math, Object } = primordials;

ReferenceError: primordials is not defined

add

npm-shrinkwrap.json

with

{
  "dependencies": {
    "graceful-fs": {
      "version": "4.2.2"
    }
  }
}

ReferenceError: primordials is not defined

when use gulp I got the below error

ReferenceError: primordials is not defined
at fs.js:27:26
at req_ (C:\Users\Sávio Oliveira\Downloads\Compressed\angularjs-realworld-example-app-master\node_modules\natives\index.js:143:24)
at Object.req [as require] (C:\Users\Sávio Oliveira\Downloads\Compressed\angularjs-realworld-example-app-master\node_modules\natives\index.js:55:10)
at Object. (C:\Users\Sávio Oliveira\Downloads\Compressed\angularjs-realworld-example-app-master\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37)
at Module._compile (internal/modules/cjs/loader.js:868:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:879:10)
at Module.load (internal/modules/cjs/loader.js:731:32)
at Function.Module._load (internal/modules/cjs/loader.js:644:12)
at Module.require (internal/modules/cjs/loader.js:771:19)
at require (internal/modules/cjs/helpers.js:68:18)

gulp -v
CLI version: 2.2.0
Local version: 3.9.0

how can i fix the error

login issue

It automatically logs out when I log in. I was just created my account. I can see my profile on top right. But after page loaded it logs me out.

Errror: transition superseded upon starting up

After running gulp, I get this error message below in Chrome console. Any thoughts on how to fix this?

main.js:19241 Error: transition superseded
    at $StateProvider.$get (main.js:2904)
    at Object.invoke (main.js:9581)
    at main.js:9373
    at getService (main.js:9522)
    at injectionArgs (main.js:9547)
    at Object.invoke (main.js:9573)
    at main.js:12739
    at forEach (main.js:4951)
    at Object.<anonymous> (main.js:12737)
    at Object.invoke (main.js:9581) "Possibly unhandled rejection: {}"

Error: transition aborted
    at $StateProvider.$get (main.js:2906)
    at Object.invoke (main.js:9581)
    at main.js:9373
    at getService (main.js:9522)
    at injectionArgs (main.js:9547)
    at Object.invoke (main.js:9573)
    at main.js:12739
    at forEach (main.js:4951)
    at Object.<anonymous> (main.js:12737)
    at Object.invoke (main.js:9581) "Possibly unhandled rejection: {}"

Error: transition failed
    at $StateProvider.$get (main.js:2907)
    at Object.invoke (main.js:9581)
    at main.js:9373
    at getService (main.js:9522)
    at injectionArgs (main.js:9547)
    at Object.invoke (main.js:9573)
    at main.js:12739
    at forEach (main.js:4951)
    at Object.<anonymous> (main.js:12737)
    at Object.invoke (main.js:9581) "Possibly unhandled rejection: {}"

missing script: dev

Why in package.json no script "dev" definition?
I'm getting the error: missing script: dev

Transition issues ahoy

This is what is logged to the console when I follow the build instructions. Is it something I can safely ignore?
`Error: transition superseded
$get@http://localhost:4000/main.js:2904:42
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18

Error: transition prevented
$get@http://localhost:4000/main.js:2905:41
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18

Error: transition aborted
$get@http://localhost:4000/main.js:2906:39
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18

Error: transition failed
$get@http://localhost:4000/main.js:2907:38
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
injectionArgs@http://localhost:4000/main.js:9349:58
invoke@http://localhost:4000/main.js:9375:18
registerDirective/</<@http://localhost:4000/main.js:12484:33
forEach@http://localhost:4000/main.js:4898:11
registerDirective/<@http://localhost:4000/main.js:12482:13
invoke@http://localhost:4000/main.js:9383:16
enforcedReturnValue@http://localhost:4000/main.js:9217:20
invoke@http://localhost:4000/main.js:9383:16
createInjector/protoInstanceInjector<@http://localhost:4000/main.js:9177:20
getService@http://localhost:4000/main.js:9324:32
addDirective@http://localhost:4000/main.js:14341:42
collectDirectives@http://localhost:4000/main.js:13548:13
compileNodes@http://localhost:4000/main.js:13341:22
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compileNodes@http://localhost:4000/main.js:13357:15
compile@http://localhost:4000/main.js:13226:15
bootstrapApply/<@http://localhost:4000/main.js:6384:11
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22613:20
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
Possibly unhandled rejection: {} main.js:18869:18

Error: this.listConfig is undefined
runQuery@http://localhost:4000/main.js:39306:9
setListTo@http://localhost:4000/main.js:39287:7
ArticleListCtrl@http://localhost:4000/main.js:39267:5
invoke@http://localhost:4000/main.js:9383:16
$controllerInit@http://localhost:4000/main.js:15236:24
nodeLinkFn@http://localhost:4000/main.js:14113:35
compileTemplateUrl/<@http://localhost:4000/main.js:14521:13
processQueue@http://localhost:4000/main.js:21189:37
scheduleProcessQueue/<@http://localhost:4000/main.js:21233:27
$RootScopeProvider/this.$get</Scope.prototype.$eval@http://localhost:4000/main.js:22513:16
$RootScopeProvider/this.$get</Scope.prototype.$digest@http://localhost:4000/main.js:22327:15
$RootScopeProvider/this.$get</Scope.prototype.$apply@http://localhost:4000/main.js:22621:13
bootstrapApply@http://localhost:4000/main.js:6382:9
invoke@http://localhost:4000/main.js:9383:16
bootstrap/doBootstrap@http://localhost:4000/main.js:6380:5
bootstrap@http://localhost:4000/main.js:6400:12
[5]<@http://localhost:4000/main.js:38880:1
s@http://localhost:4000/main.js:1:246
e@http://localhost:4000/main.js:1:425
@http://localhost:4000/main.js:1:11
main.js:18869:18`

How to add new libraries?

How do I go about adding an external library? For instance I'm trying to add this library:
https://github.com/skeymeulen/swangular

I've seen example using bower to manage dependencies. However, the way this project is set up, I don't see a way to easy add a new external dependency.

How would you go about doing this?

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.