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

POS UI Extensions: Issue testing getting started app with MIME type (' ') is not executable error #998

Closed
damtan9008 opened this issue Jun 8, 2023 · 4 comments
Assignees
Labels
bug Something isn't working POS UI Extensions

Comments

@damtan9008
Copy link

damtan9008 commented Jun 8, 2023

Please list the package(s) involved in the issue, and include the version you are using

  1. Shopify CLI version 3.46.3
  2. Shopify app version 3.46.3
  3. NPM version 9.6.4
  4. Node version 20.0.0
  5. ngrok version 3.2.2
  6. retail-ui-extension version 1.01 and 1.1.2

Describe the bug

I was following the steps from the development doc to deploy a hello world version of POS UI Extension on the android emulator but was running into the same error " refused to execute script from 'https://6023-103-252-203-176.ngrok-free.app/extensions/dev-69e15911-fab5-43bd-9038-a80d5d3205cd/assets/main.js?lastUpdated=1686198240469' because its MIME type ('') is not executable." no matter which language I chose. I have tested it on my iPad and iPhone as well and the same issue happened.

Steps to reproduce the behavior:

  1. Create an app with POS UI Extension
  2. Run POS UI Extension in android emulator with deeplink

Expected behavior

Able to see a POS UI Extension app with the name My app

Screenshots

Screenshot 2023-06-08 at 2 30 28 PM Screenshot 2023-06-08 at 2 30 28 PM

Additional context

@damtan9008 damtan9008 added bug Something isn't working POS UI Extensions labels Jun 8, 2023
@damtan9008 damtan9008 changed the title POS UI Extensions: Issue deploying and testing getting started app with ngrok POS UI Extensions: Issue testing getting started app with MIME type (' ') is not executable error Jun 8, 2023
@vctrchu vctrchu assigned vctrchu and unassigned vctrchu Jun 12, 2023
@vctrchu
Copy link
Contributor

vctrchu commented Jun 15, 2023

Hi @damtan9008, can you please trying running npm run shopify upgrade and try again? The Preview URL generated from the npm run dev command should not be hosted with ngrok but Cloudflare. It should be in the format of https://~~~~~.trycloudflare.com/extension/dev-console.

@damtan9008
Copy link
Author

Hi @vctrchu , thanks for getting back to me. Wanted to check if ngrok is the one causing the issue here as it has been working for me as my tunnel of choice when I was running functions or checkout extensions locally.

@vctrchu
Copy link
Contributor

vctrchu commented Jun 16, 2023

Yes, the free version of ngrok has seen to cause some issues. We recommend switching to cloudflare or upgrading ngrok.

@damtan9008
Copy link
Author

Thanks @vctrchu , will try out both methods on my end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working POS UI Extensions
Projects
None yet
Development

No branches or pull requests

2 participants