Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need some pointers to build a local version of docx-templates for browser. #395

Open
brijeshbv opened this issue Nov 14, 2024 · 0 comments

Comments

@brijeshbv
Copy link

Hello,
I am currently working on a patch version of docx-templates for some custom modifications.

I am able to build and publish my patch to a private npm repository.
The library works fine when I use it in a node environment, however I seem to have not built the binaries right for the browser version.

The same patch version on the browser throws the following error when I import the library as shown here:
import createReport from 'docx-templates';

Error when pointing to the locally built library:
Error in v-on handler (Promise/async): "SyntaxError: The requested module '/xxxxxxxxxxxxxxx/repos/docx-templates-original/lib/index.js' does not provide an export named 'default'"

Can I please be pointed to the build and publish documentation used for the official release ?
Any help here would be much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant