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

If I build the project with vite2 + vue3, I can't get it to work on the browser side #129

Open
arrosev opened this issue Aug 7, 2022 · 1 comment

Comments

@arrosev
Copy link

arrosev commented Aug 7, 2022

My project environment: vite2 + vue3
Report an error: Buffer is not defined
I found that Buffer is used on lines 200 and 207 of this file: https://github.com/TooTallNate/plist.js/blob/master/lib/parse.js

@arrosev arrosev changed the title I can't get it to work on the browser side If I build the project with vite2 + vue3, I can't get it to work on the browser side Aug 7, 2022
@mreinstein
Copy link
Collaborator

what file are you including? The browser compatible file is dist/plist.js.

Have you tried cloning this repo and running the example (examples/browser/) ? When you run it and open the dev console, you should see the plist object printed to the console without errors.

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