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

ReferenceError: Buffer is not defined #325

Closed
Pflyg opened this issue Nov 4, 2021 · 3 comments
Closed

ReferenceError: Buffer is not defined #325

Pflyg opened this issue Nov 4, 2021 · 3 comments

Comments

@Pflyg
Copy link

Pflyg commented Nov 4, 2021

When I try to use the toString method in browser (webpack), I get the following Error

Uncaught ReferenceError: Buffer is not defined
    foldLines tools.js:109
    foldLines tools.js:100
    toString calendar.js:411
    toBlob calendar.js:280
    ts ICal.ts:19

Same with toURL and toBlob

@sebbo2002 sebbo2002 self-assigned this Nov 4, 2021
@sebbo2002 sebbo2002 added the bug label Nov 4, 2021
@sebbo2002
Copy link
Owner

Oh crap. Sorry, currently ical-generator is not usable in the browser. The reason is this line, which currently does not work in the browser. I will provide a fix as soon as I get to it.

@github-actions github-actions bot mentioned this issue Nov 4, 2021
github-actions bot pushed a commit that referenced this issue Nov 4, 2021
## [3.0.2-develop.2](v3.0.2-develop.1...v3.0.2-develop.2) (2021-11-04)

### Bug Fixes

* Remove Blob usage to support modern browsers ([c4e33d3](c4e33d3)), closes [#325](#325)
@sebbo2002
Copy link
Owner

🎉 This issue has been resolved in version 3.0.2-develop.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

github-actions bot pushed a commit that referenced this issue Nov 17, 2021
# [3.1.0](v3.0.1...v3.1.0) (2021-11-17)

### Bug Fixes

* Remove Blob usage to support modern browsers ([c4e33d3](c4e33d3)), closes [#325](#325)

### Features

* **Calendar:** Handle `timezone('UTC')` correctly ([c0745e5](c0745e5)), closes [#328](#328)
* **event:** Add support for event class ([a227aa2](a227aa2))
* **Event:** Handle `timezone('UTC')` correctly ([781dc3d](781dc3d)), closes [#328](#328)
@sebbo2002
Copy link
Owner

🎉 This issue has been resolved in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

No branches or pull requests

2 participants