Re: Errors when running VTK

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: Errors when running VTK

Sebastien Jourdain-2
Did you ran npm install vtk.js --save ?

On Mon, Nov 27, 2017 at 2:42 AM, AhmedCSS <[hidden email]> wrote:
Dear all,

I'm new to vtk.js, i tried to run this exemple and i did the same steps:
https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html

But when doing npm run build i get this errors:

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Common/DataModel/DataSet/Constants' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 7:0-83
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Common/DataModel/DataSetAttributes/Constants' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 6:0-93
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Filters/General/Calculator' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 3:0-75
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Filters/Sources/ConeSource' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 4:0-75
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve 'vtk.js/Sources/Rendering/Core/Actor'
in '/home/ahmed/MyWebProject/src'
 @ ./src/index.js 2:0-69
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Rendering/Core/Mapper' in '/home/ahmed/MyWebProject/src'
 @ ./src/index.js 5:0-70
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 1:0-93
 @ ./src/index.js

Please help me to fixe it,
many thanks.




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers



_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Errors when running VTK

AhmedCSS
Yes, i followed the same steps

Garanti sans virus. www.avast.com

2017-11-27 16:03 GMT+01:00 Sebastien Jourdain <[hidden email]>:
Did you ran npm install vtk.js --save ?

On Mon, Nov 27, 2017 at 2:42 AM, AhmedCSS <[hidden email]> wrote:
Dear all,

I'm new to vtk.js, i tried to run this exemple and i did the same steps:
https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html

But when doing npm run build i get this errors:

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Common/DataModel/DataSet/Constants' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 7:0-83
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Common/DataModel/DataSetAttributes/Constants' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 6:0-93
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Filters/General/Calculator' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 3:0-75
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Filters/Sources/ConeSource' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 4:0-75
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve 'vtk.js/Sources/Rendering/Core/Actor'
in '/home/ahmed/MyWebProject/src'
 @ ./src/index.js 2:0-69
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Rendering/Core/Mapper' in '/home/ahmed/MyWebProject/src'
 @ ./src/index.js 5:0-70
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 1:0-93
 @ ./src/index.js

Please help me to fixe it,
many thanks.




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers




_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers

Reply | Threaded
Open this post in threaded view
|

Re: Errors when running VTK

Sebastien Jourdain-2
Do you see a directory "vtk.js" under ./node_modules?

On Tue, Nov 28, 2017 at 1:57 AM, Ahmed Ben Ltaief <[hidden email]> wrote:
Yes, i followed the same steps

Garanti sans virus. www.avast.com

2017-11-27 16:03 GMT+01:00 Sebastien Jourdain <[hidden email]>:
Did you ran npm install vtk.js --save ?

On Mon, Nov 27, 2017 at 2:42 AM, AhmedCSS <[hidden email]> wrote:
Dear all,

I'm new to vtk.js, i tried to run this exemple and i did the same steps:
https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html

But when doing npm run build i get this errors:

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Common/DataModel/DataSet/Constants' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 7:0-83
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Common/DataModel/DataSetAttributes/Constants' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 6:0-93
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Filters/General/Calculator' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 3:0-75
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Filters/Sources/ConeSource' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 4:0-75
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve 'vtk.js/Sources/Rendering/Core/Actor'
in '/home/ahmed/MyWebProject/src'
 @ ./src/index.js 2:0-69
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Rendering/Core/Mapper' in '/home/ahmed/MyWebProject/src'
 @ ./src/index.js 5:0-70
 @ ./src/index.js

ERROR in ./src/index.js
Module not found: Error: Can't resolve
'vtk.js/Sources/Rendering/Misc/FullScreenRenderWindow' in
'/home/ahmed/MyWebProject/src'
 @ ./src/index.js 1:0-93
 @ ./src/index.js

Please help me to fixe it,
many thanks.




--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Dev-f1251487.html
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers





_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Search the list archives at: http://markmail.org/search/?q=vtk-developers

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtk-developers