CannerCMS / cannercms

⚡️ Content Management Framework creates custom CMS fast and easy. Support data sources such as Firebase/Firestore, GraphQL and Restful APIs.

Home Page:https://www.cannerdata.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot setup Credential

imakou opened this issue · comments

Hi All,

I've generated cert from Firebase and saved with canner.cloud.js under the same folder.
I tried to access the cert.json as following
default: [new FirebaseCredential(require('./cert.json'))]
Then, I got the error message:

Reading canner.cloud.js occurs errors. Error: Unexpected token ;

It seems that you give a wrong path in your canner.cloud.js. Check out the links below to fix it.

I think there is nothing worng with my setting...

Any suggestion?

Thanks.
screen shot 2018-12-19 at 5 29 22 pm
screen shot 2018-12-19 at 5 29 43 pm

In addition, always facing the error when tried to initialize the project

EACCES: permission denied, mkdir '/snapshot/cli/dist/schema/company/components'

I install @canner/Cli by yarn as global installing.

commented

Hi, @imakou thanks for the report.

It's a typo in the company template, you can find this line: pathname; 'about', and please change it to pathname: 'about' (; to :) in canner.cloud.js.

And I just released 2.7.9 which fixes both two problems, please try it, thanks!