Vor Kurzem aufgerufene Suchen


Keine vor kurzem aufgerufene Suchen

Zendesk-garden is not working in iframe.html



Gepostet 21. Jan. 2022

Why my zendesk-garden is not working in iframe.html? After I install it "npm install @zendeskgarden/react-grid" then I import it to my iframe.html there is an error occurs it says "

Inline Babel script:3
Uncaught ReferenceError: require is not defined
at <anonymous>:5:18

- ReferenceError: Row is not defined" how to fix this?


0

1

1 Kommentar

image avatar

Eric Nelson

Zendesk Developer Advocacy

Hi KD,

The reason you are getting ReferenceError: require is not defined is because nowhere in your html page is require included. Require does not come with your standard JavaScript library (what is html compatible). If you'd like to use Zendesk Garden components. Use them in js files and then have those compiled into the html file. This app is a good example of doing this. Checkout how I'm handling using Zendesk Garden in the webpack.config for a bit more context on how to do this.

Thanks,

0


Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie finden nicht, wonach Sie suchen?

Neuer Post