tmeasday / meteor-router

MIT License
366 stars 76 forks source link

After updated the router to current version by mrt update,something error occur. #77

Closed tony0918 closed 11 years ago

tony0918 commented 11 years ago

screen shot 2013-05-06 at 4 34 37 pm

Code in file /lib/config.coffee

Configs = 
    baseDrupalUrl:"http://www.abcde.com"

Code in file /both.coffee

Tools = 
    baseDrupalUrl:Configs.baseDrupalUrl

After starting the meteor by command "sudo mrt",error shown below:

ReferenceError: Configs is not defined at app/both.coffee.js:26:18 at /Users/maohuiliu/Sites/ccms/meteor/.meteor/local/build/server/server.js:286:12 at Array.forEach (native) at Function..each..forEach (/Users/maohuiliu/.meteorite/meteors/meteor/meteor/bfe4b72ebec4367eaddcdf0887fcf5e649d9dcb8/dev_bundle/lib/node_modules/underscore/underscore.js:79:11) at run (/Users/maohuiliu/Sites/ccms/meteor/.meteor/local/build/server/server.js:227:7) => Exited with code: 1

The same code work right under the version v0.4.3

Help~

tmeasday commented 11 years ago

This sounds like an issue created by the scoping changes introduced by Meteor 0.6.0, not the Router.