First add-in works until I actually touch the code #693
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. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
I've added this discussion to the Office-Addin-Scripts issue #831. This needs to be fixed. |
Beta Was this translation helpful? Give feedback.
-
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
add
with '+' 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.
Beta Was this translation helpful? Give feedback.
All reactions