Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't set template root and engine before init() #37

Open
XadillaX opened this issue Oct 30, 2017 · 0 comments · May be fixed by #38
Open

Can't set template root and engine before init() #37

XadillaX opened this issue Oct 30, 2017 · 0 comments · May be fixed by #38

Comments

@XadillaX
Copy link
Contributor

  • Version: 0.5.0
  • Node.js Version: 6.9.1
  • Platform: Darwin zanarpro 17.0.0 Darwin Kernel Version 17.0.0: Thu Aug 24 21:48:19 PDT 2017; root:xnu-4570.1.46~2/RELEASE_X86_64 x86_64 i386 MacBookPro11,3 Darwin
  • Subsystem: akyuu
const akyuu = require("akyuu");

akyuu.setTemplateRoot(path.resolve(__dirname, 'templates'));
akyuu.init(function(err) {
});

It will show:

  this.settings[setting] = val;
                         ^

TypeError: Cannot set property 'views' of undefined
    at Akyuu.set (/Users/.../express/4.15.2/express/lib/application.js:361:26)
    at Akyuu.setTemplateRoot (/Users/.../akyuu/lib/akyuu.js:172:14)
    ...
XadillaX added a commit to XadillaX/akyuu that referenced this issue Oct 30, 2017
@XadillaX XadillaX linked a pull request Oct 30, 2017 that will close this issue
1 task
DuanPengfei pushed a commit that referenced this issue Mar 2, 2018
Fixes: #37

PR-URL: #38
Reviewd-By: DuanPengfei <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant