[react-form] Not working with Shopify embedded app
See original GitHub issueOverview
When trying to use @shopify/react-form I get the following error:
./node_modules/@shopify/react-form/build/esm/validation/validator.mjs Can't import the named export 'isEmpty' from non EcmaScript module (only default export is available)
The error is caused even by just importing the library:
import { useField, useForm } from '@shopify/react-form';
Issue Analytics
- State:
- Created 3 years ago
- Reactions:9
- Comments:14 (4 by maintainers)
Top Results From Across the Web
AppBridge not working in Embedded App - Shopify Community
App is setup as embedded The rest of the app loads and works fine... I can create the TitleBar, but it's not showing....
Read more >Polaris App Bridge React Model Question - Shopify Community
Showing off App Bridge code is no use as that Modal does not work properly in the embedded App sense, and fails to...
Read more >Error while building Shopify Sample Embedded App
Solved: Hi, I've been following the tutorial, https://shopify.dev/tutorials/build-a-shopify-app-with-node-and-react, and I got stuck with some errors.
Read more >Polaris App Bridge React Model Question - Shopify Community
The Modal in App Bridge React does not work like the other one. It has no Modal.section. So that whole working pattern is...
Read more >Integrating Custom App with Custom Storefront using latest stack
Hi @domparise,. The embedded app SDK (EASDK) is only applicable to building applications for the Shopify Admin and in general it is not...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Similar issue with @shopify/react-i18n
It seems to be related to Next.js
@dahukish I created my project using the Shopify cli:
shopify create node
and running my project withshopify serve
. I actually managed to workaround the issue but it required updating my next.config.js like this:Maybe it should be documented somewhere or added to the template generated by shopify-cli?