veliovgroup / Meteor-flow-router-title

Change document.title on the fly within flow-router
https://atmospherejs.com/ostrio/flow-router-title
BSD 3-Clause "New" or "Revised" License
25 stars 4 forks source link

"SyntaxError: Unexpected token export" in browsers in ostrio_flow-router-title.js #7

Closed Kshatra closed 7 years ago

Kshatra commented 7 years ago

Line 133 in ostrio_flow-router-title.js

export { FlowRouterTitle };

causes "SyntaxError: Unexpected token export" error on client side (FF 29, Chrome 55.0.2883.75):

bstocks commented 7 years ago

I'm also seeing this on Mac Chrome 55.0.2883.75 (64-bit)

dr-dimitru commented 7 years ago

Hi @Kshatra @bstocks does ecmascript package is installed on your en?

bstocks commented 7 years ago

yes ecmascript@0.6.1

Kshatra commented 7 years ago

yes, ecmascript is installed

dr-dimitru commented 7 years ago

Going to test it on my end. I'm just wondering how it passed through the meteor-build... Is there any errors at Server console?

dr-dimitru commented 7 years ago

Tested on my end, can't reproduce. Anyways I'll publish update today, with minor changes. Let me know if it will help.

dr-dimitru commented 7 years ago

Hi @Kshatra , @bstocks

Please see v1.2.5

Let me know it is fixed on your end

bstocks commented 7 years ago

@dr-dimitru

I've tried your latest version 2.1.6 and I'm still crashing, but now it's crashing in the build process. Here is what happens when I try to run after installing the package:

=> Started proxy.
=> Errors prevented startup:

   While processing files with coffeescript (for target web.browser):
   packages/ostrio:flow-router-title/flow-router-title.coffee:1:1: reserved word 'export'

=> Your application has errors. Waiting for file change.
dr-dimitru commented 7 years ago

Hi @bstocks ,

What Meteor version? Post contents of .meteor/packages file