'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! 


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source