Meteor and iron : router로 실험 중입니다. 나는 https://github.com/EventedMind/iron-router.git에서 예를 복제했다. 그런 다음 샘플/기본 CD로 편집하고 유성 업데이트 및 유성을 실행했습니다. 내 유성 버전은 0.9.3.1Iron : Router with Meteor 0.9.3.1
웹 사이트로 이동하면 콘솔에 오류가 표시되고 페이지가 비어 있습니다. 오류는 다음과 같습니다 :
Exception from Tracker recompute function: Error: Couldn't find a template named "/" or "". Are you sure you defined it?
at null._render (http://localhost:3000/packages/iron_dynamic-template.js?32038885cb1dad7957291ffebfffcb7f8cd57d20:239:17)
at doRender (http://localhost:3000/packages/blaze.js?7b7ff7ee2ccdccd85a1ad0d8dc9d96193e29e8b0:1853:25)
at http://localhost:3000/packages/blaze.js?7b7ff7ee2ccdccd85a1ad0d8dc9d96193e29e8b0:1795:16
at Object.Blaze._withCurrentView (http://localhost:3000/packages/blaze.js?7b7ff7ee2ccdccd85a1ad0d8dc9d96193e29e8b0:2029:12)
at viewAutorun (http://localhost:3000/packages/blaze.js?7b7ff7ee2ccdccd85a1ad0d8dc9d96193e29e8b0:1794:18)
at Tracker.Computation._compute (http://localhost:3000/packages/tracker.js?192a05cc46b867dadbe8bf90dd961f6f8fd1574f:288:36)
at new Tracker.Computation (http://localhost:3000/packages/tracker.js?192a05cc46b867dadbe8bf90dd961f6f8fd1574f:206:10)
at Object.Tracker.autorun (http://localhost:3000/packages/tracker.js?192a05cc46b867dadbe8bf90dd961f6f8fd1574f:476:11)
at Blaze.View.autorun (http://localhost:3000/packages/blaze.js?7b7ff7ee2ccdccd85a1ad0d8dc9d96193e29e8b0:1793:19)
at http://localhost:3000/packages/blaze.js?7b7ff7ee2ccdccd85a1ad0d8dc9d96193e29e8b0:1847:10 debug.js:41
내가 잘못하고있는 것을 친절하게 알려 줄 수 있습니까?
미리 감사드립니다.
Thanks a bundle Akshat. 철로 다운 그레이드했을 때 언급 한대로 작동합니다 : [email protected] – 3thanZ
나는 또 다른 도전에 직면하고 있습니다. 템플릿과 Router.route 정의를 '/ client/core'와 같은 하위 폴더로 옮기면 응용 프로그램이 더 이상 올바르게 경로를 지정하지 않습니다. – 3thanZ
@ 3thanZ이 라우터 버전은 실제로 아직 작업 중입니다. 404가 제대로 작동하려면 서버 측과 클라이언트 측 (루트 폴더)에서 라우트를 설정해야합니다. Iron router의 현재 버전을 사용하고자한다면 * 0.9.3으로 다운 그레이드해야합니다. – Akshat