Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

111
Vistas
Matter.js/Parcel SVG animation does not run on Bluehost server

I implemented a Matter.js SVG animation into a website, on localhost it runs well with Parcel. When I upload it to Bluehost server with File Manager, the animation does not work. I get the following error message in the console:

Uncaught SyntaxError: The requested module './scripts/matter.js' does not provide an export named 'default'

This is my package.json:

{
  "name": "my-app",
  "version": "1.0.0",
  "type": "module",
  "description": "",
  "main": "index.js",
  "scripts": {
    "clean:output": "rimraf dist",
    "start": "parcel index.html",
    "build": "parcel build index.html",
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [
    "matter.js",
    "collisions"
  ],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "bootstrap-grid-only-css": "^4.1.3",
    "matter-js": "^0.14.2",
    "parcel": "^2.2.1",
    "poly-decomp": "^0.3.0"
  }
}
```


And the imports in my index.js file:


```
import PolyDecomp from "./scripts/poly-decomp.js";
import Matter from "./scripts/matter.js";
```

Thank you in avance, if you can help! 
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda