Closed chenxizhang closed 2 years ago
~I encountered this issue as well. I ran office-addin-dev-settings registered
to see which manifests are registered with Excel. Then removed them all one at a time with office-addin-dev-settings unregister <<manifest path>>
. Then I restarted Excel.
Doing this resolved that issue.~
24 hours later, my experience is the same as yours. Unregistering the manifests no longer solves this.
@TCourtneyOwen note that there are two customers reporting this issue.
@awasser-omnispear @chenxizhang Is the dev-server in fact started, assuming this add-in is set to localhost?
It's been a bit since I've had issues with this. I've since just wiped everything clean and started again. My use case is fairly specific: I've got an existing app which I'd like to integrate ReactJS, custom functions, and the new build process.
I think I took the ReactJS Typescript base from Yo Office and applied the differences from the template from https://github.com/OfficeDev/Excel-Custom-Functions. I don't remember exactly what I did to make it all work, but it does work now.
Couple of things I did find out while doing this:
Sorry I can't be any more of help. As I said before, I've got the sideloading working now. I hope @chenxizhang has similar luck!
Thanks for the response @awasser-omnispear I am glad to hear things are working for you and sorry to hear you were having problems. We have heard from others who are having problems starting the dev-server and am wondering if your issue is related. One person mentioned that downgrading webpack-cli to an earlier version fixed their problem with starting the dev-server.
-Courtney
I've always been able to start the dev-server, either through npm run start
or npm run dev-server
.
I was not able to get to the root cause. The biggest thing to look out for is running all the commands in a Windows PowerShell or command line; not WSL (my usual dev environment). I believe that is where my issue stemmed from.
I confronted the same issue when I opened a existed excel file. At that moment, the status bar showed and hung as bellow
I found that the add-ins was okay. None thing bad happened and I still did well with that file. If I created a new excel file and paste content from the existed file to the new one, it solved.
I guest that I created the old file and typed custom functions when using localhost server at the debug mode. When I saved it, the excel file stored metadata about that localhost server. Whenever reopening that file, the problem occurs.
Is anyone still having trouble with this?
I will be closing this issue since there was no response to the previous callout message. Please, feel free to reopen if the issue still exists.
it usually means that "something is wrong", but it doesn't tell you what exactly is wrong. Said "something is wrong" is contained within the manifest, so usually it's the formatting of your XML objects. That's my experience with it thus far anyway.
I'm having that same error. I'm trying to update my manifest production for submitting my app to the Partner Center/App Store. It was working in localhost. Then I changed one manifest line from bt:Url id="Functions.Metadata.Url" DefaultValue="https://localhost:3000/public/functions.json" to a Azure blob hosted file link. The link works but I got that same error: I then put the bt:Url line back to the way it was and ran NPM start again, and I'm getting the same error. Now I need to figure out how to get back to where I was. I was trying to take it one step at a time, but perhaps I need to get all the links changed at once to point to web hosted files. But I don't know why putting the line back the way it was doesn't get rid of the error.
Prerequisites
Please answer the following questions before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.
Expected behavior
I created an excel addin by "yo office", it works fine before, but I found it can't work anymore from yesterday. I don't know what happen there.
Current behavior
I ran the command "npm start" or "yarn start" in the terminal of VS Code, it can build, and open Excel, but the add-in can't be loaded with below error
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
Failure Logs
Please include any relevant log snippets, screenshots or code samples here.