meteorhacks / zones

Zone.js integration for meteor
MIT License
30 stars 11 forks source link

Resource MIME type problem #58

Open chhib opened 10 years ago

chhib commented 10 years ago

I haven't managed to track down what is causing this in the Chrome console when adding the zones package:

Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:3000/packages/meteorhacks:zones/assets/utils.js?1410859635271". HP82t24cZAf559e8T:8
Refused to execute script from 'http://localhost:3000/packages/meteorhacks:zones/assets/utils.js?1410859635271' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. HP82t24cZAf559e8T:1
...

I thought it might be the browser-policy package, but removing it still yields errors:

Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:3000/packages/meteorhacks:zones/assets/before.js?1410859815350". (index):9
Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:3000/packages/meteorhacks:zones/assets/utils.js?1410859815350". (index):8
Uncaught SyntaxError: Unexpected token < utils.js:1
Uncaught SyntaxError: Unexpected token < before.js:1
Resource interpreted as Script but transferred with MIME type text/html: "http://localhost:3000/packages/meteorhacks:zones/assets/zone.js?1410859815350". (index):10
...
arunoda commented 10 years ago

Are you using mrt ot new packaging system?

arunoda commented 10 years ago

Can you please update zones package. Current version is 1.2.1. It's available via both mrt and meteor.

chhib commented 10 years ago

I'm using the new packaging system and also version 1.2.1. Meteor version is 0.9.2.1.

arunoda commented 10 years ago

Ah! We haven't tested yet with 0.9.2. I'll give it a try here.


Arunoda Susiripala

@arunoda http://twitter.com/arunoda http://gplus.to/arunodahttps://github.com/arunoda http://www.linkedin.com/in/arunoda

On Tue, Sep 16, 2014 at 3:50 PM, David Andersson notifications@github.com wrote:

I'm using the new packaging system and also version 1.2.1. Meteor version is 0.9.2.1.

— Reply to this email directly or view it on GitHub https://github.com/meteorhacks/zones/issues/58#issuecomment-55723229.

arunoda commented 10 years ago

We had a issues with Meteor 0.9.2, please update meteorhacks:zones to 1.2.2

krstffr commented 10 years ago

I also have this issue, and I'm using 0.9.2.1 / 1.2.2.

arunoda commented 10 years ago

are you still having this issue, hmmm. let me see. weird.

krstffr commented 10 years ago

Yes, only on my Heroku server though, not on my local machine.