I am trying a sample Stencil application on a local network. Both bundling and deployment of the assets are alright but, when trying it in the browser, it does not work.
It does resolve the first chunk, the module declared as
script tag in the
index.html but, fails at loading the following ones, those
import in the JS code. The network server returns 500 Internal Server Error.
Stencil uses Rollup under the hood which depends on ES modules (ESM).
Am I missing something in my configuration or do I hit a current limitation of the network?
Does anyone succeed to deploy a Rollup based app on the network and can share a sample?
To reproduce the issue, here a sample repo:
git clone https://github.com/peterpeterparker/stencil-ic-sample cd stencil-ic-sample npm ci dfx start --background dfx deploy
Thx in advance for any tips
P.S.: Screenshot of the error