配置为单页应用程序将所有URL重写为/index.html后,“发生意外错误”吗?是

问题描述

F:\projects\done>firebase init

     ######## #### ########  ######## ########     ###     ######  ########
     ##        ##  ##     ## ##       ##     ##  ##   ##  ##       ##
     ######    ##  ########  ######   ########  #########  ######  ######
     ##        ##  ##    ##  ##       ##     ## ##     ##       ## ##
     ##       #### ##     ## ######## ########  ##     ##  ######  ########

You're about to initialize a Firebase project in this directory:

  F:\projects\done

? Are you ready to proceed? Yes
? Which Firebase CLI features do you want to set up for this folder? Press Space to select features,then Enter to confi
rm your choices. Hosting: Configure and deploy Firebase Hosting sites

=== Project Setup

First,let's associate this project directory with a Firebase project.
You can create multiple project aliases by running firebase use --add,but for Now we'll just set up a default project.

? Please select an option: Use an existing project
? Select a default Firebase project for this directory: angular-fireb (angular-fireb)
i  Using project angullar-fireba (angullar-fireba)

=== Hosting Setup

Your public directory is the folder (relative to your project directory) that
will contain Hosting assets to be uploaded with firebase deploy. If you
have a build process for your assets,use your build's output directory.

? What do you want to use as your public directory? dist/done/index.html
? Configure as a single-page app (rewrite all urls to /index.html)? Yes

Error: An unexpected error has occurred.

解决方法

出现问题您想将什么用作公用目录?尝试仅回答dist/done