-
Notifications
You must be signed in to change notification settings - Fork 2k
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
failed with documentation code... #972
Comments
Where did you see this documentation? It looks similar to this... It looks like there's an extra comma. Maybe that's a problem? |
@michael-garofalo your remark seems to be the right one |
Usually, when something like this happens, I open up the developer tools in the browser. Which browser are you using? Typically, there's a console log message that says what's wrong. The HTML, in issue #256, is not enough. It needs the matter.min.js file too.
I just tested the code and I was like... WTF?! It's blank. 😄 But, upon closer inspection, the page wasn't blank. There was a scrollbar. I was able to scroll the page and then see the demo at the bottom. I don't remember it doing that before. The problem is this...
I just removed that part and it seems to be working normally. |
Thank you, i got it.
some how replaced the source files, the browser show the output.
Regards
'Jyeann
Hp +6012 370 7373
Connecting <https://www.linkedin.com/in/jye-ann-a4b4333a> Creativity
<https://www.linkedin.com/in/jye-ann-a4b4333a>
Design • Trading • Technology
…On Mon, Mar 1, 2021 at 8:32 PM michael-garofalo ***@***.***> wrote:
tried you #256 <#256> (comment)
code. still blank browser
Usually, when something like this happens, I open up the developer tools
in the browser. Which browser are you using? Typically, there's a console
log message that says what's wrong.
The HTML, in issue #256 <#256>,
is not enough. It needs the *matter.min.js* file too.
<script src="matter.min.js"></script>
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#972 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA254O2CGM7F6MC7TPTQVHLTBOCOVANCNFSM4XJYTVPA>
.
|
I also faced the same error. |
1st time testing here and tried testing out the demo code in getting start, but it kept showing
matter-js: Render.create: options.element was undefined, render.canvas was created but not appended warn
`
<title>Document</title> <script src="./matter-js-0.16.1/build/matter.js"></script> <script> var Engine = Matter.Engine, Render = Matter.Render, World = Matter.World, Bodies = Matter.Bodies;The text was updated successfully, but these errors were encountered: