0

I'm working on an Excel Add-in and would like to reference office-js using an ES6 import like this:

import Office from '@microsoft/office-js'

Even though I've installed the package with npm and confirmed it's in my package.json I'm getting "Module not found" errors. Is there a better way to do this?

1 Answers1

0

I believe it does not work that way. At least for the moment.

Have a look at this explanation. Cannot find name 'Office'

DutchDan
  • 115
  • 9