Bug on safari iOS web export

I tried to make an export with cocos-pnp in Cocos Creator 2.4.6 and tested it using Safari on Mac/iOS, but it shows me the Cocos Creator error 3121. I also tried using all image files in PNG format and didn’t compress them, but I still get the same error.
I change all files to bundle and the bug changed but stoped working on Chrome
Does anyone know what this bug is?

Could you please provide the demo for us to check?

“Good idea, Tom. I’m also curious about this issue, Emiliano, if you can share a minimal demo or project files, it might help everyone figure out what’s causing error 3121.”

Hey Tom! I found the solution in Cocos 3.x — it’s because Cocos is not compatible with Safari (I don’t know why), but if you add this code in the project root with the name babel.config.js, it works.

 module.exports = {
  presets: [
    [
      '@babel/preset-env',
      {
        targets: {
          safari: '13'
        },
        useBuiltIns: 'entry',
        corejs: 3
      }
    ]
  ]
};