Shopify / shopify-cli-extensions

MIT License
24 stars 9 forks source link

POS UI Test Extension Failure #352

Open dmhenry opened 2 years ago

dmhenry commented 2 years ago

make serve-dev testdata/extension.config.yml errors out with:

POS UI Test Extension (Error building extension:  Error: Build failed with 1 error:
src/index.tsx:2:16: error: No matching export in "node_modules/@shopify/retail-ui-extensions-react/index.mjs" for import "useExtensionApi"
    at failureErrorWithLog (/Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:1475:15)
    at /Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:1133:28
    at runOnEndCallbacks (/Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:1051:65)
    at buildResponseToResult (/Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:1131:7)
    at /Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:1240:14
    at /Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:611:9
    at handleIncomingPacket (/Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:708:9)
    at Socket.readFromStdout (/Users/dave/src/github.com/Shopify/shopify-cli-extensions/tmp/pos_ui_extension/node_modules/esbuild/lib/main.js:578:7)
    at Socket.emit (node:events:390:28)
    at addChunk (node:internal/streams/readable:315:12) {
  errors: [
    {
      detail: undefined,
      location: [Object],
      notes: [],
      pluginName: '',
      text: 'No matching export in "node_modules/@shopify/retail-ui-extensions-react/index.mjs" for import "useExtensionApi"'
    }
  ],
  warnings: []
})
dmhenry commented 2 years ago

CC: @samiulmonir06

samiulmonir06 commented 2 years ago

@dmhenry : This is a known issue from our end and we have a ticket to resolve it in next cycle.

dmhenry commented 2 years ago

@samiulmonir06 Would you mind linking to the issue on your end? Feel free to close this afterward.

samiulmonir06 commented 2 years ago

Here is the ticket: https://github.com/Shopify/pos-next-react-native/issues/13732. I thought I already linked but somehow probably missed on that.