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

hostOrText.readFile is not a function while npm run build #1494

Open
vc-anandkothari opened this issue Jun 9, 2023 · 2 comments
Open

hostOrText.readFile is not a function while npm run build #1494

vc-anandkothari opened this issue Jun 9, 2023 · 2 comments

Comments

@vc-anandkothari
Copy link

Describe the bug

I'm using package version 5.10.0 and node version is 16.15.0 getting this error while running npm run build command hostOrText.readFile is not a function

To Reproduce
Steps to reproduce the behavior:

  1. npm run build

Screenshots

image

Environment information:

  • Node version: 16.15.0
  • OS: Windows 10
@vc-anandkothari
Copy link
Author

vc-anandkothari commented Jun 9, 2023

Could someone please assist me in fixing this error? If I'm missing anything, please let me know how to generate build which genereate iife file.

Thanks

@lemoustachiste
Copy link
Member

It's a pretty old version you are working with, can't you update to a later one?

Other than that it looks like it's an error with rollup-plugin-typescript so I guess you might have either a too recent version of it, or an outdated one. Try and remove node_modules and then run npm ci to get an iso build.

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

2 participants