-
-
Notifications
You must be signed in to change notification settings - Fork 197
SyntaxError: Unexpected non-whitespace character after JSON at position 2 #538
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
Comments
@Seventysevendays there is no context!🤷♂️ |
|
You did: npm i
npm run build
npm run dev and went to to the example via http://localhost:8080/packages/examples/react.html and it doesn't work? |
i remember such a problem with a bad (old) polyfill of |
in monaco-languageclient repo, it goes well, the same code in my repo, went wrong, but it was good before, so I think maybe caused by the package version, i tried change related package version, still not work |
can you do a |
do you know how to fix it? the buff all changed to number string, its confused |
we use a newer buffer dependency in resolutions in package.json
but this is a yarn concept the question is why does old buffer end up in your codebase |
The library checks if the Buffer class exists to use it (useful in a node/electron context) |
yes but old versions use PROTO to overide array methods which does not work in modern browser anymore. |
Maybe if you |
yes so you are lost if there is an old buffer polyfill lurking around. |
it works in my project, thx a lot |
Thanks everyone. |
@Seventysevendays FYI added a new sub-section to the troubleshooting guide. |
The text was updated successfully, but these errors were encountered: