-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
firebase serve config #4
Comments
I had a similar issue. If you go into the web-start directory and run:
You can use ./ here (make sure you tell it not to redirect links or overwrite index.html as well in the other steps for init). When you get to step 13: firebase.json has a section that does the same thing:
|
Thanks @uzusan, I was sure it was a rookie error. |
Thanks for the report guys. I'll fix this. It seems the alpha version of the CLI that I was using did not require the hosting/public attribute to be set but it now does... |
Whilst working through you Web Chat App Javascript tutorial I hit an error when executing
firebase serve
.From,
firebase-debug.log
:[debug] TypeError: Cannot read property 'public' of undefined at Server.<anonymous> (/usr/local/lib/node_modules/firebase-tools/commands/serve.js:25:15)
I was able to prevent this error by commenting out the following lines in
serve.js
(obviously not ideal):if (config.public && config.public !== '.') { logger.info(chalk.bold('Public Directory:'), config.public); }
The text was updated successfully, but these errors were encountered: