-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
Unexpected token '<' (at VM201 Build.loader.js:1:1) #489
Comments
Remove |
You've removed too much, Keep the leading |
In appearance, there are some problems when working specifically with CRA, because the installation in react project, which was created by "hands" (https:/dev.to/stepstep.to/ivadyhabimana/how--create-a-withwithout-appervice-creang----reactrea-appBusi-a30nl) - everything works |
The link seem don't work any more.
|
i have the same error with CRA and react-unity-webgl. @levkovich2806 can you reupload the link with created by ¨hands¨ solution plz? |
Create react app without CRA - https://dev.to/ivadyhabimana/how-to-create-a-react-app-without-using-create-react-app-a-step-by-step-guide-30nl |
Thanks @levkovich2806! I have tried to use the library with Vite instead of CRA and it works perfectly. |
you can fix with CRA add webpack.config.js in project root example webpack.config.js
|
Edit: I realized there's a "WebGL" extra text in the dataurl, however even after fixing that. The problem remains the same. |
facing same problem. have you figured out the solution ? @YukimuraKyoko |
Please avoid duplicates
Language and Compiler
Babel and WebPack JavaScript
What environment are you using?
Local Development Server
When does your problem occur?
When the Context is created
What does your problem relate to?
The problem seems React related
React-Unity-WebGL Version
9.4.0
React Version
18.2.0
Unity Version
2021.3.4f1
What happened?
I get an Error about unexpected token..? Seems to be that a lot of people have got this, but I can't seem to figure this out.
Reproducible test case
No response
Would you be interested in contributing a fix?
The text was updated successfully, but these errors were encountered: