You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 23, 2025. It is now read-only.
Calling require('@tableau/embedding-api') (v 3.12.1) fails at runtime/build time with: Module not found: Can't resolve '@tableau/api-shared-js'
because @tableau/api-shared-js is not declared in package.json even though ToolbarServiceImpl.js does: const { … } = require('@tableau/api-shared-js');
Note: npm ci works because the lock-file records the nested path, but a plain npm install (or a fresh clone without package-lock.json) removes the extraneous folder during the prune step.
Why it happens
The tarball on npm containsnode_modules/@tableau/api-shared-js, but it is not listed in "dependencies" nor "bundledDependencies".
During npm install anything under a package’s private node_modules that is not declared is considered extraneous and is removed.
Expected behavior
The package should install and run with only: npm install @tableau/embedding-api
Proposed fix
Add the missing module to the published package.json, e.g.
Describe the bug
Calling
require('@tableau/embedding-api')(v 3.12.1) fails at runtime/build time with:Module not found: Can't resolve '@tableau/api-shared-js'because
@tableau/api-shared-jsis not declared inpackage.jsoneven thoughToolbarServiceImpl.jsdoes:const { … } = require('@tableau/api-shared-js');To reproduce
https://stackblitz.com/edit/vitejs-vite-evyremew?file=src%2FApp.tsx
Why it happens
node_modules/@tableau/api-shared-js, but it is not listed in "dependencies" nor "bundledDependencies".npm installanything under a package’s private node_modules that is not declared is considered extraneous and is removed.Expected behavior
The package should install and run with only:
npm install @tableau/embedding-apiProposed fix
Add the missing module to the published
package.json, e.g.and relase a patch version (e.g. 3.12.2).
Thanks!