The error we’re seeing is:
Uncaught SyntaxError: Invalid or unexpected token (at entrypoint-designer-extensions-client.e005ad9d9ff3e21975fd.js:91:106138)
This in turn appears to be blocking subsequent code such that the webflow object is not defined:
Uncaught (in promise) ReferenceError: webflow is not defined
We even started from scratch and created a brand new extension via the following:
$ webflow extension init foobar
$ cd foobar
$ npm run dev
The issue still persists even with a completely new/empty designer extension. Can someone on the dev support team take a look at the current version of the script above to see if this is something that you can fix?
I am also seeing this error. Not sure if it was happening before but just noticed it today.
My webflow cli version is: @webflow/webflow-cli@1.6.12
Happens both on Brave & Firefox browsers. However on Firefox the error reads “Uncaught SyntaxError: illegal character U+20AC”.
It only happens on my local app in development mode. Published apps don’t have this error.
EDIT:
I also just noticed I’m now getting a webflow is not defined error which I definitely wasn’t getting before & is now breaking functionality.
The app was originally initialized with version 1.6.5. I installed the latest version (1.6.13), and added the "apiVersion": "2" parameter to webflow.json, but the error persists.
However, after installing 1.6.13, I can now generate a completely new app successfully using the commands above - it appears to load the same Javascript file, but the error is gone.
Are there any additional steps to take when updating webflow-cli in an existing project?
I wouldn’t expect the upgrading of webflow-cli to fix it, I more so asked that to ensure I was trying to reproduce using the same setup. Also webflow-cli should be installed globally, so if it did fix the serving of one App in theory it should fix the other.
We are attempting to reproduce though so we can better help debug.
Adding <meta charset="UTF-8" /> to your index.html fixes it. I was able to reproduce by removing that (which shows the error you saw) and then adding it back in fixed it.
We just deployed a fix to ensure the JavaScript bundle has the correct charSet type associated with it when retrieved. You should see it come across in the Content-Type header of the request.
I am also seeing this error. Not sure if it was happening before but just noticed it today.
My webflow cli version is: @webflow/webflow-cli@1.6.12
Happens both on Brave & Firefox browsers. However on Firefox the error reads “Uncaught SyntaxError: illegal character U+20AC”.
It only happens on my local app in development mode. Published apps don’t have this error.
Just confirming: I’m seeing the charset in the Content-Type header and have removed the <meta charset="UTF-8" /> from my index.html file and everything is working properly. Thanks for the fix!