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

Cannot read properties of undefined (reading 'Int16Array') #21

Open
imperator-maximus opened this issue Oct 31, 2021 · 4 comments
Open

Comments

@imperator-maximus
Copy link

imperator-maximus commented Oct 31, 2021

Hello,
with

import  { indent } from "indent.js";
html=indent.html(html)

I am getting

Uncaught TypeError: Cannot read properties of undefined (reading 'Int16Array')
    at intArray (indent.js:677)
    at indent (indent.js:474)
    at Object.html (indent.js:451)
    at App.svelte:62

Any idea?

@tinydogio-joshua
Copy link

I'm having the same issue. Did you find a workaround?

@aral
Copy link

aral commented Mar 17, 2023

Ditto.

@aral
Copy link

aral commented Mar 17, 2023

Note: This patch fixes the issue. Will prepare a PR based on it when I get a moment unless someone else beats me to it ;)

master...intergestalt:indent.js:master

@aral
Copy link

aral commented Mar 17, 2023

Update: ended up using js-beautify (https://www.npmjs.com/package/js-beautify)

(Two of the unit tests are failing and you need Node < 12 to run them so it was going to take too long to contribute in a meaningful way.)

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

3 participants