First add-in works until I actually touch the code #693
Unanswered
KDean-Dolphin
asked this question in
Q&A
Replies: 3 comments 3 replies
|
I believe you need to close Excel and then re-launch it so it will register the new set of custom functions. You can verify that https://localhost:3000/functions.json has been generated correctly for the functions, e.g. you should see a sub() function there. |
1 reply
|
You might also use NPM to install the latest version of custom-functions-metadata-plugin, as I think the code which is causing that error was fixed recently. You can do this through |
2 replies
|
I've added this discussion to the Office-Addin-Scripts issue #831. This needs to be fixed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have followed the quick start to create an add-in as follows:
Project type: Excel Custom Functions using a Shared Runtime
Script type: TypeScript
I then run:
npm run build
npm run start:desktop
The demo functions work as expected.
Next, I edit functions.ts, to add a sub() function (copy and paste of
addwith '+' replaced with '-'). The moment I go back to Excel, I get:ERROR in ./src/taskpane/taskpane.ts (/Users/kevindean/Projects/Excel Test/src/taskpane/taskpane.ts) 37:33-36
[tsl] ERROR in /Users/kevindean/Projects/Excel Test/src/taskpane/taskpane.ts(37,34)
TS2304: Cannot find name 'add'.
Repeat above message for all demo functions and for both taskpane.ts and command.ts.
The final message is this:
Conflict: Multiple assets emit different content to the same filename functions.json
Any help on getting past this would be greatly appreciated.
All reactions