0

I am attempting the Meteor/Angular2 tutorial here

If I make a change to a component the changes are not updated in the browser (Google Chrome); even if I do the following things...

  1. Save changes and hard refresh browser.
  2. Stop server and restart.

I have to clear the browser cache to get rid of the old data and load the new.

I'm pretty sure this should not be the case, as it creates a major problem for a developer.

This tutorial is using Angular2, Meteorjs, as well as a typescript compiler.

This is not an Angular issue.

My question is... Is the problem with meteorjs not triggering a hard refresh? Or could it perhaps be an issue with the typescript compiler?

Also, how could I fix this?

I'm running

Typescript Compiler: netanelgilad:angular2-typescript

Meteorjs: 1.2.2

Google Chrome: Version 47.0.2525.0 canary (64-bit)

UPDATE:

I tried a normal .js file and everything works as expected. This means its the Typescript Compiler: netanelgilad:angular2-typescript.

I'll check out the package and see what I can find.

1 Answer 1

2

If You are using

http-server

then this may be the issue of http-server as it always store the data in cache.

In my case i was using http-server and this problem occured.

You can fix it by selecting the disable cache option in developer tools(chrome).

Sign up to request clarification or add additional context in comments.

5 Comments

This worked. Is the http-server the generic server that Meteor runs?
Also, why do the .js and .html files load regardless of cache, but the .ts do no?
@SoEzPz According to me, Browser has only concerned with the html and js files not with the ts files.
http-server is not the generic server for meteor.you can also run meteor using apache server.link
See this link for reference :: link

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.