Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Doginal opened this issue Dec 3, 2018 · 1 comment
Open

Comments

@Doginal
Copy link

Doginal commented Dec 3, 2018

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?

@awl19
Copy link

awl19 commented Jun 14, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants