나는 작동하는 Dancer 앱이 있습니다. DBIC를 사용하고 있습니다.Dancer DBIC schema_class를로드 할 수 없습니다.
데이터베이스에 테이블을 추가하고 싶습니다. 따라서 새 파일을 만들었습니다. 나는 응용 프로그램을 다시 시작할 때 그러나 지금, 나는 새로운 파일을 제거하면
Error while loading ././bin/app.pl: Could not load schema_class MyApp::Schema at /usr/local/share/perl/5.14.2/Dancer/Plugin/DBIC.pm line 42.
Compilation failed in require at ././bin/app.pl line 5.
BEGIN failed--compilation aborted at ././bin/app.pl line 5.
이 모든 것이 잘 작동 다음과 같은 오류를 얻을. 여기
는package MyApp::Schema;
# Created by DBIx::Class::Schema::Loader
# DO NOT MODIFY THE FIRST PART OF THIS FILE
use strict;
use warnings;
use base 'DBIx::Class::Schema';
__PACKAGE__->load_namespaces;
1;
가 어디에서 오류에 대한 자세한 정보를 얻을 수 있습니다 내가 뭘 잘못했는지 내 Schema.pm 파일입니다?
라인 42와 그 주변 라인은 무엇입니까? – jordanm
스키마를로드 할 수 없을 때 DBIC의 다이 행입니다. http://api.metacpan.org/source/IRONCAMEL/Dancer-Plugin-DBIC-0.1505/lib/Dancer/Plugin/DBIC에서 볼 수 있습니다. pm – Craigy