Vtk-js: Angular 8 + vtk.js

Created on 9 Jan 2020  ·  3Comments  ·  Source: Kitware/vtk-js

Hi,

I am using vtkjs in Angular web projects.

In the old versions of Angular, we had access to the webpack.config.js file to edit it and I could then add the rules of vtk.js.

The problem is that in the latest versions, Angular encapsulates webpack in its code (through the angular.json file) and it is now very difficult to edit the webpack of an Angular project.

So I can't do npm install vtk.js.

For the moment to work around the problem, I import the vtk.js library precompiled in app.module.ts. Thus, I can't use 'import ... from vtk.js ...' and I have to update the vtk.js versions by downloading the new release each time

Have people here already been confronted with this problem?
Thanks

documentation question❓

All 3 comments

I was under the impression that this was an issue with Angular 7, but not Angular 8. Are you able to use angular-builders?

I will try with the new version of the angular builders.

@aminechir did you have succes? what did you do?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mix3d picture mix3d  ·  6Comments

xavArtley picture xavArtley  ·  4Comments

aylward picture aylward  ·  4Comments

MHadavand picture MHadavand  ·  6Comments

truongleit picture truongleit  ·  6Comments