Skip to content

Version 9.10.0 - ReferenceError: Buffer is not defined #197

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

Closed
serenata-keith-mifsud opened this issue Mar 4, 2020 · 1 comment
Closed

Comments

@serenata-keith-mifsud
Copy link

I'm referencing only

<script src="//unpkg.com/liquidjs/dist/liquid.min.js"></script>

and calling

const engine= new liquidjs.Liquid();
engine.parseAndRender(template, data)

is causing the following error

Uncaught (in promise) ReferenceError: Buffer is not defined
    at node.ts:9
    at ke.ee (token.ts:15)
    at new ke (html-token.ts:5)
    at Me.readHTMLToken (tokenizer.ts:118)
    at Me.readToken (tokenizer.ts:107)
    at Me.readTokens (tokenizer.ts:96)
    at Hr.parse (liquid.ts:42)
    at Hr._parseAndRender (liquid.ts:59)
    at Hr.<anonymous> (liquid.ts:63)
    at liquid.min.js:1
@harttle harttle added the bug label Mar 4, 2020
@harttle harttle closed this as completed in 65b849c Mar 4, 2020
harttle pushed a commit that referenced this issue Mar 4, 2020
# [9.11.0](v9.10.0...v9.11.0) (2020-03-04)

### Bug Fixes

* `Buffer not defined` for browser bundles, fixes [#197](#197) ([65b849c](65b849c))
* stable sort for undefined keys, fixes [#191](#191) ([f57156b](f57156b))

### Features

* async cache.read()/write(), remove .has() ([61dac49](61dac49))
@harttle
Copy link
Owner

harttle commented Mar 4, 2020

🎉 This issue has been resolved in version 9.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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