redgeoff / delta-pouch

Conflict-free collaborative editing for PouchDB
196 stars 13 forks source link

Uncaught SyntaxError: Unexpected token < #33

Closed alearcy closed 9 years ago

alearcy commented 9 years ago

Hi @redgeoff, I updated pocuh to the 3.0.2 version, and in the browser console I read this error associated with pouchdb.delta-pouch.min.js:5 Thanks!

redgeoff commented 9 years ago

Did you upgrade delta-pouch to the latest version?

alearcy commented 9 years ago

Yep, 0.1.4

nolanlawson commented 9 years ago

I cannot reproduce with 0.1.4 and the latest PouchDB.

Are you sure your web server is serving up pouchdb.delta-pouch.min.js as content-type:text/javascript? It sounds like your web server is serving it up as HTML. Check the Network tab and see what the content-type is.

alearcy commented 9 years ago

Hi @nolanlawson, my server is serving up delta-pouch as application/javascript: delta-pouch The problems started when I update both pocuhdb and delta-pouch to the latest versions. In fact, few days ago I opened issue #30 when all worked fine (with some little problem unresolved about update document within Ionic Framework - Angular) with Pouch in 2.2.3 version and delta-pouch just released.

nolanlawson commented 9 years ago

I'm pretty sure it's supposed to be text/javascript

alearcy commented 9 years ago

I forced it: `

` but nothing works fine..
nolanlawson commented 9 years ago

Not sure what to tell you, because I really cannot reproduce. I'm using exactly the version hosted here.

BTW PouchDB is now at version 3.0.5. :)

alearcy commented 9 years ago

I'll try to start with an ex-novo project and I'll tell you if it will work fine...stay tuned!

redgeoff commented 9 years ago

@alearcy have you tried using factoryng? Did it solve your problem? Please let me know as I will be closing this issue soon.