javascript - CoffeeScript Invalid Syntax : -


i have updated coffescript module 1.6.3 1.7.1 , code no longer compile. proper syntax this? believe replace : =.

console error:

password: 'test',         ^ syntaxerror: unexpected token : 

complete snap of code section

module.exports =    mongo_url: "mongodb://localhost:27017/testmaker_api_testing?poolsize=5"  mock_s2:   mac_id: "mocks2_md"   password: "!ensandbox1"   domain: "talkrnd.testmaker.net"   prod_mac_id: "mocks2_prod"   prod_password: "!mocks21"  route_prefix: "/testmaker/v1" user:   username: 'monkey',   password: 'test',   email: 'monkey@testmaker.com',   fullname: 'monkey nackles'   admin: true   groups : ['admin']  op_user:   username: 'booz',   password: 'test',   email: 'bbla@testmaker.com',   fullname: 'booz bla'   admin: false   groups : ['op']  killable_user:   username: 'i die',   password: 'pass',   email: 'nocener@testmaker.com',   fullname: 'john doe'   admin: false   groups : [''] 

this config file. when complied coffee-script 1.7.1 getting error mongo_url line change ":" , changed "=" , error went away next error occurred @ 13th line password. again "=". not believe error syntax.

thank in advance

try removing comma after dictionary values, e.g. username: 'monkey', should username: 'monkey'.

that said, code does compile coffeescript 1.7.1. maybe there's whitespace issue or something. try copying code question , compile yourself.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -