

Hello, I'm working on a project that uses Blockly for easy block coding. I've been working on this for a while and it's almost done. However, today i tried to test the static export on Next.js so I can ensure that I will be able to deploy the site.

Thanks for the quick response!
At first it gives these warnings which seem to be related to Next.js:Loading failed for the <script> with source “file:///_next/static/chunks/webpack-953556fdf238d252.js”. index.html:1:517Loading failed for the <script> with source “file:///_next/static/chunks/framework-ecc4130bc7a58a64.js”. index.html:1:600Loading failed for the <script> with source “file:///_next/static/chunks/main-678ea17784401d5f.js”. index.html:1:678Loading failed for the <script> with source “file:///_next/static/chunks/pages/_app-ef0c2d814daa91a8.js”. index.html:1:762Loading failed for the <script> with source “file:///_next/static/chunks/d711c980-35baa5180bb4620c.js”. index.html:1:844Loading failed for the <script> with source “file:///_next/static/chunks/ee9ce975-31d5f14ab71fbd00.js”. index.html:1:926Loading failed for the <script> with source “file:///_next/static/chunks/690-9ddff9650b0d4649.js”. index.html:1:1003Loading failed for the <script> with source “file:///_next/static/chunks/pages/index-557f5c67a89af9cf.js”. index.html:1:1088Loading failed for the <script> with source “file:///_next/static/FYPDXEWgvLmg0imH3xMTx/_buildManifest.js”. index.html:1:1174Loading failed for the <script> with source “file:///_next/static/FYPDXEWgvLmg0imH3xMTx/_ssgManifest.js”. index.html:1:1258But then it shows an error, which I think is the issue here:SyntaxError: CustomElementRegistry.whenDefined: 'blockly' is not a valid custom element name index.js:6248I went to go check the index.js file but oddly, there doesn't seem to be one? I'm kind of stuck here.
I looked through all your suggestions and couldn't figure it out, bit I went on GitHub pages and found out that there is a built in Next.js compiler. When i used that workflow and commited my files, everything deployed with no issue!
One more thing, could you check this out and let me know if it shows up well for you?