When to upgrade vtk.js version to V22.0.2? .Optional chain error

I am using a project developed by VUE, I am using? No problem… But upgrade to vkt.js 22.0.2 tips? Error.

What should I do, please

Did you consider GitHub - Kitware/vue-vtk-js: Vue.js based components for vtk.js ?

1 Like

You can either try vue-vtk-js, as posted above, or use @kitware/vtk.js (ESM build) instead of vtk.js from npm. If you don’t want to switch imports, you will need to tell babel-loader to handle optional chaining, either through @babel/plugin-proposal-optional-chaining · Babel or using the latest @babel/preset-env.

1 Like

OK,thank you