question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Getting Started" docs won't get you started

See original GitHub issue

So, the docs leave a lot out - in particular, simply importing the rapier3d from npm isn’t going to work without configuring your bundler (webpack, rollup, etc.) to handle wasm files. I’ve spent a couple hours trying to get it to work with snowpack - it kept complaining that the .wasm file was not a JavaScript file; switched over to webpack and got a similar error. Then I tried installing wasm-loader, but that doesn’t work either - I get _rapier_wasm3d_bg_wasm__WEBPACK_IMPORTED_MODULE_0__.rawintegrationparameters_new is not a function. I’m guessing that I need to find a different loader, but I have no idea which loader I should use.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
sebcrozetcommented, Apr 21, 2021

@viridia I added some information to the “Getting started” docs regarding rapier3d-compat. You will find an example on CopdePen (it’s similar in 3D). The trick is to await the RAPIER.init() future.

import RAPIER from 'https://cdn.skypack.dev/@dimforge/rapier3d-compat';

RAPIER.init().then(() => {
    // Run the simulation.
});
0reactions
viridiacommented, Apr 21, 2021

OK thanks, I got it working.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't create a Google Doc (unable to add, try again later or ...
Be sure you are signed in to only one account in the Chrome tab. Clear the browser's cache and cookies. Try in an...
Read more >
Google Docs: Getting Started with Google Drive - GCF Global
In Google Drive getting started is as simple as creating a free Google account. Use this free lesson for step-by-step instructions.
Read more >
Docs • Svelte
Complete documentation for Svelte.
Read more >
Getting started with HTML - Learn web development | MDN
In this article we cover the absolute basics of HTML. To get you started, this article defines elements, attributes, and all the other...
Read more >
Running on Windows - Node-RED
To fix this, either give permissions to the folder to other users and make sure that the folder is included in their path...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found