i tried updating iron:middleware-stack suggested others on , elsewhere , continue have same problem. however, problem present when creating server-side routes--client-side routes work fine.
i ended using meteor add iron:middleware-stack@1.1.0
add .meteor/packages
, prevent version rollback have mentioned--but still didn't correct problem server-side routes.
my server-side routes defined similar to:
router.route('/', { name: 'home', template: 'home' }, { where: 'server' });
is there else i'm missing?
updates
full error:
w20160901-20:41:13.960(-7)? (stderr) /users/theitsmith/.meteor/packages/meteor-tool/.1.4.1_1.1h0re2h++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/serve r-lib/node_modules/fibers/future.js:280 w20160901-20:41:13.961(-7)? (stderr) throw(ex); w20160901-20:41:13.961(-7)? (stderr) ^ w20160901-20:41:13.961(-7)? (stderr) w20160901-20:41:13.962(-7)? (stderr) error: handler name 'home' exists. w20160901-20:41:13.962(-7)? (stderr) @ [object object].middlewarestack._create (packages/iron_middleware-stack/lib/middleware_stack.js:31:1) w20160901-20:41:13.962(-7)? (stderr) @ [object object].middlewarestack.push (packages/iron_middleware-stack/lib/middleware_stack.js:47:1) w20160901-20:41:13.962(-7)? (stderr) @ function.router.route (packages/iron_router/lib/router.js:131:1) w20160901-20:41:13.964(-7)? (stderr) @ meteorinstall.server.routing.js (server/routing.js:10:8) w20160901-20:41:13.966(-7)? (stderr) @ fileevaluate (packages/modules-runtime/.npm/package/node_modules/install/install.js:153:1) w20160901-20:41:13.968(-7)? (stderr) @ require (packages/modules-runtime/.npm/package/node_modules/install/install.js:82:1) w20160901-20:41:13.968(-7)? (stderr) @ /users/theitsmith/webstormprojects/tsp-www/.meteor/local/build/programs/server/app/app.js:80:1 w20160901-20:41:13.968(-7)? (stderr) @ /users/theitsmith/webstormprojects/tsp-www/.meteor/local/build/programs/server/boot.js:292:10 w20160901-20:41:13.969(-7)? (stderr) @ array.foreach (native) w20160901-20:41:13.969(-7)? (stderr) @ function._.each._.foreach (/users/theitsmith/.meteor/packages/meteor-tool/.1.4.1_1.1h0re2h++os.osx.x86_64+web.browser+web.cordova /mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
package list (meteor list
):
$ meteor list autopublish 1.0.7 (for prototyping only) publish entire database clients blaze-html-templates 1.0.4 compile html templates reactive ui meteor blaze ecmascript 0.5.8 compiler plugin supports es2015+ in .js files es5-shim 4.6.14 shims , polyfills improve ecmascript 5 support insecure 1.0.7 (for prototyping only) allow database writes client iron:core 1.0.11 iron namespace , utilities. iron:middleware-stack 1.1.0 client , server middleware support inspired connect. iron:router 1.0.13 routing designed meteor iron:url 1.0.11 url utilities , support compiling url regular expression. jquery 1.11.9 manipulate dom using css selectors meteor-base 1.0.4 packages every meteor app needs mobile-experience 1.0.4 packages great mobile user experience mongo 1.1.12 adaptor using mongodb , minimongo on ddp reactive-var 1.0.10 reactive variable shell-server 0.2.1 server-side component of `meteor shell` command. showdown 1.0.8 moved 'markdown' package standard-minifier-css 1.2.0 standard css minifier used meteor apps default. standard-minifier-js 1.2.0 standard javascript minifiers used meteor apps default. tracker 1.1.0 dependency tracker allow reactive callbacks
package list (cat .meteor/packages
):
$ cat .meteor/packages # meteor packages used project, 1 per line. # check file (and other files in directory) repository. # # 'meteor add' , 'meteor remove' edit file you, # can edit hand. meteor-base@1.0.4 # packages every meteor app needs have mobile-experience@1.0.4 # packages great mobile ux mongo@1.1.12 # database meteor supports right blaze-html-templates@1.0.4 # compile .html files meteor blaze views reactive-var@1.0.10 # reactive variable tracker jquery@1.11.9 # helpful client-side library tracker@1.1.0 # meteor's client-side reactive programming library standard-minifier-css@1.2.0 # css minifier run production mode standard-minifier-js@1.2.0 # js minifier run production mode es5-shim@4.6.14 # ecmascript 5 compatibility older browsers. ecmascript@0.5.8 # enable ecmascript2015+ syntax in app code autopublish@1.0.7 # publish data clients (for prototyping) insecure@1.0.7 # allow db writes clients (for prototyping) showdown@1.0.8 iron:router shell-server iron:middleware-stack@1.1.0 iron:core iron:url
it known issue. please refer link below.
they have solution suggested
add option / flag / type bypasses names in middlewarestack. (maintaining existing api's if using it?)
just remove name related middlewarestack, , bump major version. pull request
Comments
Post a Comment