app_scaffold icon indicating copy to clipboard operation
app_scaffold copied to clipboard

ReferenceError: ZAFClient is not defined at eval (ticket_sidebar.js:10)

Open Doginal opened this issue 6 years ago • 1 comments

Default scaffold - running commands in root folder npm run watch and npm start

Is causing either can't have multiple babel-polyfill, if I turn off babel-polyfill in webpack, I get ReferenceError: ZAFClient is not defined at eval (ticket_sidebar.js:10)

I am using zat=true in browser window (chrome). I have disable cache enabled in dev tools.

What would be causing this issue? its driving me insane and no help from google. I cant get a basic app to run in sidebar, the one project it did load in the side bar but the iframe does not exist. Is the zat broken?

Doginal avatar Dec 03 '18 02:12 Doginal

6 months late here, but I'll give it a go. You said you were running those commands in your root folder. If you're having issues with npm run watch then there's definitely a problem, but npm run start should be used in the child folder "src" (or "dist" which is what you'll use in your production app) which is where the manifest file is that should be used for Zendesk Apps. If you're not in that folder while using the start command then you will definitely have issues.

Other than that I'm not sure. I'd have to see your errors prior to turning off babel-polyfill.

Use npm run lint in your root folder to try and identify syntax issues first and then go from there.

awl19 avatar Jun 14 '19 05:06 awl19