Giter Club home page Giter Club logo

Comments (8)

jourdain avatar jourdain commented on June 30, 2024

Have you done that?

https://kitware.github.io/vtk-js/docs/setup.html

You need to run $ npm run build to compile the application code.
Then if you serve your dist/ directory you should have the application visible in your browser.

One issue in the documentation is that I forget to give the content of .eslintrc.js, but you can get it from vtk.js if you don't want to write your own.

from vtk-js.

yundian avatar yundian commented on June 30, 2024

ERROR in .//babel-loader?presets[]=es2015,presets[]=react!.//string-replace?{"multiple":[{"search":"vtkDebugMacro","replace":"console.debug","flags":"g"},{"search":"vtkErrorMacro","replace":"console.error","flags":"g"},{"search":"vtkWarningMacro","replace":"console.warn","flags":"g"}]}!./~/eslint-loader!./src/index.js

/home/ubuntu/myWebProject/src/index.js
47:2 error Parsing error: 'import' and 'export' may only appear at the top level
ERROR in .//babel-loader?presets[]=es2015,presets[]=react!.//string-replace?{"multiple":[{"search":"vtkDebugMacro","replace":"console.debug","flags":"g"},{"search":"vtkErrorMacro","replace":"console.error","flags":"g"},{"search":"vtkWarningMacro","replace":"console.warn","flags":"g"}]}!./~/eslint-loader!./src/index.js
Module build failed: TypeError: Cannot read property 'parallel' of undefined
at Object.module.exports (/home/ubuntu/myWebProject/node_modules/string-replace/index.js:23:18)
@ ./src/index.js 1:38-557

I joined the file, but it is also wrong.
Can you tell me what's going on?

from vtk-js.

jourdain avatar jourdain commented on June 30, 2024
$ npm install string-replace  --save-dev
$ npm run build

from vtk-js.

yundian avatar yundian commented on June 30, 2024

I used to appear after the wrong!

from vtk-js.

yundian avatar yundian commented on June 30, 2024

Is there a requirement for a computer system?

from vtk-js.

yundian avatar yundian commented on June 30, 2024

ERROR in ./index.js
Module build failed: TypeError: Cannot read property 'parallel' of undefined
at Object.module.exports (/home/ubuntu/vtkjs/node_modules/string-replace/index.js:23:18)

from vtk-js.

jourdain avatar jourdain commented on June 30, 2024

Your system is fine, just the doc is slightly off. Pushing some update right now.

For you, you might be able to just run again those commands or start again the new doc once online.

$ npm install kitware/vtk-js
$ npm run build

from vtk-js.

yundian avatar yundian commented on June 30, 2024

Thanks, I succeeded.

from vtk-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.