Can't get webflow object in my app

Hello, I’m developing the app for my company and already have a problem with Designer extension: I can’t get “webflow” object anyhow to interact with the designer from the app iframe.

Our app is not just for Webflow, it integrates with multiple SaaS platforms. Backend is Laravel (PHP Framework), React is chosen for Webflow extension. So I have html page for extension and want to include extension scripts into it.

Templates I’ve tried already:

I guess this script could possibly resolve the problem of missing webflow object, but here are the questions:

  • is it stable? (can see the hashes in the link, could it be temporary?)
  • is there a way to connect it to my html page alongside extension script? (I mean that is it OK to use that link with hashes, or there is a proper script to work with)

The script ( https://d3e54v103j8qbb.cloudfront.net/gen/js/entrypoint-designer-extensions-client.bfe2dbb3dbbc4d61729e.js ) works, when added to the html.
Does someone know how to do it in a proper way? Thanks in advance

Hi @Dealia_Contact - sorry you’re running into issues building your Designer Extension! A few follow up q’s:

  • Is the webflow global object defined (as in, you’re not getting errors like cannot read X method from undefined)?
  • Are you using the webflow-cli tool to run your Designer Extension app locally? See docs here for more. If you are, what version are you using? I’d recommend bumping to the latest version if not
  • The script you linked is what injects the webflow object into your iframe app. Are you not seeing this script in your HTML when debugging?

Hi @zachplata , thanks for your reply.

  1. No, it’s not defined. It appears only if I include the script manually
  2. @webflow/webflow-cli is a dev dependency in my package.json, version 1.6.13
  3. yes, it injects webflow object, but I’m not sure about what debugging you mean. This script is not present initially in my html file (actually it’s not html, it’s a blade template), I found it in jiff-pom project (took it from the running app)