I’m using Vaadin 23.1.0 and AceEditor 3.1.0. I’m getting the below error
Exception is thrown during JavaScript execution. Stacktrace will be dumped separately.
The error has occurred in the JS code: ‘$0, $1, return $0.setValue($1)’
Uncaught TypeError: $0.setValue is not a function (webpack-internal:///…/target/flow-frontend/FlowClient.js:198:16)
this seems like a Vaadin 23.1.0 issue. I tried to publish a new version of the ace editor yesterday and I was not able to build as webpack was throwing errors. Could you try switching to Vaadin 23.0.11 and see if the error still persists ? I will try to contact vaadin support.
this is a know issue. We’ll have to wait for the release which fixes this issue. as soon as the fix is released, I will build AceEditor 3.1.1 and release it.
Sorry for the week of waiting again, it should be fixed with Ace Editor v3.1.1 as it was fixed in Vaadin 23.1.1 (upstream) which was published some days ago.
You are not missing anything. As soon as you change the version in the POM to 23.x.x you need to remove the following files / folders that Vaadin re-downloads them and sets them up correctly: please keep in mind that some of the folders / files could not be visible
node_modules/
package.json
package-lock.json
webpack-generated.js
webpack-config.js
target/ (could also be achieved by mvn clean)
frontend/
After that just start your project normally (with Vaadin 23.1.1 for example and Vaadin will setup everything). You should now be able to see ace completely.
Thanks for the quick response. I tried above steps but no luck.
Getting this error
The error has occurred in the JS code: ‘$0, $1, return $0.setValue($1)’
Uncaught TypeError: $0.setValue is not a function (webpack-internal:///…/target/flow-frontend/FlowClient.js:198:16)
Could you please open a new Issue in the [GitHub Repository]
(https://github.com/f0rce/ace) so I could investigate further and take a closer look at your setup :)