bootstrap-tagsinput-rails icon indicating copy to clipboard operation
bootstrap-tagsinput-rails copied to clipboard

Unexpected token: punc (:) (line: 1, col: 10, pos: 10)

Open dalezak opened this issue 11 years ago • 6 comments

I'm getting an error when compiling assets for Heroku using 'asset_sync' gem.

Unexpected token: punc (:) (line: 1, col: 10, pos: 10)
       Error
       at new JS_Parse_Error (<eval>:2357:10748)
       at js_error (<eval>:2357:10967)
       at croak (<eval>:2357:19192)
       at token_error (<eval>:2357:19329)
       at unexpected (<eval>:2357:19417)
       at semicolon (<eval>:2357:19890)
       at simple_statement (<eval>:2357:22663)
       at <eval>:2357:20380
       at <eval>:2357:20063
       at block_ (<eval>:2357:24682)
       (in /tmp/build_07b8c4b7-8784-4174-a77a-589ee47ed04b/vendor/bundle/ruby/1.9.1/gems/bootstrap-tagsinput-rails-0.3.2.0/vendor/assets/javascripts/bootstrap-tagsinput.min.js.map)

Any ideas?

dalezak avatar Feb 10 '14 02:02 dalezak

Same here, while deploying on Heroku with classico rake assets:precompile.

My quick-and-dirty solution was to purely remove all map things. As you can see in my dumb-but-working fork: https://github.com/caedes/bootstrap-tagsinput-rails

caedes avatar Mar 17 '14 09:03 caedes

Thanks @caedes for this

fringify avatar May 08 '14 22:05 fringify

I have just updated with the latest version of original gem. Would you try again this updated gem?

rorlab avatar Oct 07 '14 04:10 rorlab

@rorlab

I have the same problem with 0.4.2.1 version.

lucassch avatar Dec 02 '14 21:12 lucassch

I am not good at English. I have the same problem with 0.4.2.1 version. I used @caedes version. Thanks!

naopontan avatar Dec 11 '14 09:12 naopontan

using @caedes version too. :smile:

lucassch avatar Dec 11 '14 11:12 lucassch