You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GET https://cdn.jsdelivr.net/npm/@dimforge/rapier3d@0.19.0/exports net::ERR_ABORTED 404 (Not Found)
This is because https://cdn.jsdelivr.net/npm/@dimforge/rapier3d@0.19.0/exports does not exist. The file https://cdn.jsdelivr.net/npm/@dimforge/rapier3d@0.19.0/exports.jsdoes exist, but appending .js to URLs is not part of native ES Module behavior. A URL to JavaScript can be anything, and only the MIME type determines if it will be executed as JavaScript.
Solving this problem has a potentially easy solution: adding .js to all import statements.
It'd be nice to update import statements so that the lib is easy to import with native ES Modules.
At the moment, this does not work:
This will fail with
This is because
https://cdn.jsdelivr.net/npm/@dimforge/rapier3d@0.19.0/exportsdoes not exist. The filehttps://cdn.jsdelivr.net/npm/@dimforge/rapier3d@0.19.0/exports.jsdoes exist, but appending.jsto URLs is not part of native ES Module behavior. A URL to JavaScript can be anything, and only the MIME type determines if it will be executed as JavaScript.Solving this problem has a potentially easy solution: adding
.jsto all import statements.