Closed ra1nj closed 2 months ago
hi @ra1nj,
have you checked what gets downloaded? This sort of error can happen when the resource isn't available - we don't check if the file looks like proper bundle before evaluating it (although we could do that to differentiate this case better 🤔).
Try manually downloading the bundle using the config from your logs to verify the correct file gets downloaded
hi @ra1nj,
have you checked what gets downloaded? This sort of error can happen when the resource isn't available - we don't check if the file looks like proper bundle before evaluating it (although we could do that to differentiate this case better 🤔).
Try manually downloading the bundle using the config from your logs to verify the correct file gets downloaded
hi @jbroma , thank you for your answer , it seems like it's the network problem, i changed to serve my bundle with a local express server, and it works like a charm 🥳.
I checked the bundle file inside my app's file sandbox. Turns out if the bundle was not correctly fetched, the error message will be write into the bundle file.
@ra1nj feel free to make a PR that could make this error to easier to debug for others. I'm currently busy with other work and don't have capacity for that
Describe the bug
Everything works fine on dev mode, but once i bundle my miniapp and put the bundle on a remote url, then i load the miniapp, the error thrown :
'[ScriptManager] Failed to load script:', '[CodeExecutionFailure]', { scriptId: 'fcca', caller: undefined, locator: { uniqueId: 'fcca', method: 'GET', url: 'https://somewhere/miniapp-ios@0.0.1/miniapp.container.bundle', absolute: false, timeout: 30000, query: 'platform=ios', body: undefined, headers: undefined, fetch: true, verifyScriptSignature: 'off' }, cache: true }, { originalError: [Error: Compiling JS failed: 7:1:invalid expression (possible JSX: pass -parse-jsx to parse) Buffer size 29480 starts with: 0a0a0a0a0a0a3c21444f435459504520] }
System Info
Re.Pack Version
4.3.1
Reproduction
will working on it
Steps to reproduce
will working on it