GithubHelp home page GithubHelp logo

angular2-ts-starter-kit's People

Contributors

antjanus avatar codacy-badger avatar markbrownsword 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

Watchers

 avatar  avatar  avatar  avatar

angular2-ts-starter-kit's Issues

Bootstrapping issue

Ran into another issue when using this project.
When opening the page, I noticed this error in the console.

EXCEPTION: The selector "my-app" did not match any elements
bundle.js:433 Uncaught (in promise) TypeError: object is not a constructor(…)obj.(anonymous function) @ bundle.js:433
bundle.js:23282 Uncaught (in promise) BaseException {message: "The selector "my-app" did not match any elements", stack: "Error: The selector "my-app" did not match any ele…eBoundFn (http://localhost:3001/bundle.js:177:20)"}(anonymous function) @ bundle.js:23282run @ bundle.js:204(anonymous function) @ bundle.js:23697zoneBoundFn @ bundle.js:177

Took me some time to figure out what the issue was, but basically, the bootstrap function was called to early.
Not sure why you did not run into this issue. Maybe something recently changed?

Anyway, there are 2 ways to solve this:

  • move the script tag to the body bottom
  • add an event listener for DOMContentLoaded

I'll create a PR for both options, I'll let you decide what you think is the best option.
(I'd prefer option 2)

Rxjs dependency

When trying to use your starter kit, I ran into troubles when running gulp to start the server:

ERROR in node_modules/angular2/src/facade/async.d.ts
(3,25): error TS2307: Cannot find module 'rxjs/Subject'.

ERROR in node_modules/angular2/src/facade/async.d.ts
(4,44): error TS2307: Cannot find module 'rxjs/Observable'.

ERROR in node_modules/angular2/src/facade/async.d.ts
(5,26): error TS2307: Cannot find module 'rxjs/Operator'.

ERROR in node_modules/angular2/src/facade/async.d.ts
(6,25): error TS2307: Cannot find module 'rxjs/Subject'.

ERROR in ./~/angular2/src/facade/async.js
Module not found: Error: Cannot resolve module 'rxjs/Subject' in /node_modules/angular2/src/facade
 @ ./~/angular2/src/facade/async.js 10:16-39 14:16-39

ERROR in ./~/angular2/src/facade/async.js
Module not found: Error: Cannot resolve module 'rxjs/Observable' in /node_modules/angular2/src/facade
 @ ./~/angular2/src/facade/async.js 11:19-45

I found out it could be solved by just npm installing rxjs.
I am not sure if this is because of the newer version from Angular2? Or Why I have this problem

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.