OfficeDev / Office-Samples

Scenario-focused sample add-ins that help you get started with building Office add-in.
MIT License
14 stars 13 forks source link

[AIGC Sample] Takes a couple of minutes for webpack to complete #106

Open samantharamon opened 2 months ago

samantharamon commented 2 months ago

Affected sample: Create a Word AIGC Add-in

When running the sample using the "Preview your Office Add-in" option, a new Word document opens and the WebView Stop On Load dialog appears. After selecting OK, the add-in task pane opens, but no buttons or content appears. It looks like it takes a couple of minutes for webpack to complete its bundling process. Once it completes, the task pane content loads.

Screenshot of the blank task pane and the webpack window.

hermanwenhe commented 2 months ago

This looks like expected behavior. Are you using a laptop or low-efficient machine?

samantharamon commented 2 months ago

I'm using a laptop (32 GB RAM, Intel i7-1185G7 processor). If it's expected behavior, we should make a note of this in the sample README.

hermanwenhe commented 2 months ago

Can you try other samples and see if it takes the same amount of time?

samantharamon commented 2 months ago

I tested the Excel Hello World sample and it took about a minute to complete the bundling process.