Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot load mini app(Module Federation) when verifyScriptSignature = 'strict' #480

Closed
bacnv1 opened this issue Dec 19, 2023 · 8 comments
Closed
Labels

Comments

@bacnv1
Copy link

bacnv1 commented Dec 19, 2023

i setting script manager with option:

verifyScriptSignature: DEV ? 'off' : 'strict'

I have run success on debug mode but when i build release i got error as bellow
telegram-cloud-photo-size-5-6052906202507098192-y
I think i lost some importance config

@jbroma
Copy link
Member

jbroma commented Dec 19, 2023

Hi @bacnv1,

verifyScriptSignature: DEV ? 'off' : 'strict' is related to CodeSigningPlugin, do you have it set up in your project? If not, you should disable verifyScriptSignature.

@bacnv1
Copy link
Author

bacnv1 commented Dec 19, 2023

@jbroma
i was set up as bellow

new Repack.plugins.CodeSigningPlugin({
enabled: mode === 'production',
privateKeyPath: path.join('..', '..', 'code-signing.pem'),
outputPath: path.join('build', 'outputs', platform, 'remotes'),
}),

@jbroma
Copy link
Member

jbroma commented Dec 19, 2023

Ok, so if the compilation finished then the private key inside of code-signing.pem exists and is usable. Did you add the public key under RepackPublicKey to strings.xml (android) and Info.plist (ios)?

@bacnv1
Copy link
Author

bacnv1 commented Dec 19, 2023

@jbroma
yes, i was added but it's not working

@jbroma
Copy link
Member

jbroma commented Dec 19, 2023

Let's narrow it down, can you check if the app works properly without CodeSigning? Change the following:

verifyScriptSignature: 'off'

and try then

@jbroma
Copy link
Member

jbroma commented Dec 22, 2023

@bacnv1 any update? Did you manage to resolve this issue?

Copy link

This issue has been marked as stale because it has been inactive for 30 days. Please update this issue or it will be automatically closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 22, 2024
Copy link

github-actions bot commented Feb 6, 2024

This issue has been automatically closed because it has been inactive for more than 14 days. Please reopen if you want to add more context.

@github-actions github-actions bot closed this as completed Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants