Unable to load js file: "Missing end of curly braces on line 4 and column 2560" #1967
Unanswered
insanity54
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi thanks for happy-dom. I'm developing a plugin for datastar and I'm looking to use happy-dom to run some integration tests. I want to make sure my data plugin behaves how it's expected to behave when it's running alongside datastar in the browser.
I'm having an issue loading datastar.js using happy-dom. I tried datastar v1.0.0-RC.6 and v1.0.0-RC.7. and I saw similar errors,
Missing end of curly braces on line ...I don't know if this is an issue with datastar or an issue with happy-dom, so I'm starting a discussion to see if the community has any insight.I've created a MVR https://github.com/insanity54/happydom-issue with a test file to demonstrate the issue. https://github.com/insanity54/happydom-issue/blob/main/test/loader.test.ts
The test also loads nanoid, a widely used npm package for generating ids. I did this to confirm if I was using happy-dom correctly (I'm brand new to the library), and compare with how I am loading datastar.
I'm not sure what's going on with the error during loading datastar. I have only theories.
I'm hoping I can get to the bottom of this. Thanks for taking a look.
Beta Was this translation helpful? Give feedback.
All reactions