Coder Social home page Coder Social logo

npm run dev Error about bimdata-viewer-sdk HOT 3 CLOSED

mwfo avatar mwfo commented on September 16, 2024
npm run dev Error

from bimdata-viewer-sdk.

Comments (3)

amineau avatar amineau commented on September 16, 2024

npm run dev:only will start vite but result in the following Error in the Browser

main.js:15 GET http://localhost:8080/.well-known/openid-configuration 404 (Not Found)

Do you have the right variables in .env file ?
We have recently renamed these variables: the old ones were prefixed with VUE, now a VITE prefix must be used.

About the npm run dev command, we have fixed this issue in the last commit: bffa773

from bimdata-viewer-sdk.

mwfo avatar mwfo commented on September 16, 2024

I did a new clone and checked the env.
npm npm run dev:only works now.

npm run dev pluginName still yields an error.

node:events:368
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)     
Emitted 'error' event on ChildProcess instance at:
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:12)
    at onErrorNT (node:internal/child_process:477:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21) {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn npm',
  path: 'npm',
  spawnargs: [ 'run', 'dev:only' ]
}```

from bimdata-viewer-sdk.

mwfo avatar mwfo commented on September 16, 2024

Changing the command in the watch-plugin.js from npm to npm.cmd worked for me.
This seems to be a Windows issue?

One thing that made me struggle were unrelated Errors caused by different plugins.

  • The bsdd plugin yields an error when watched.
  • The giro3d Plugin yields an error and the first time it is watched. Something in the package.json of the giro3d Plugin changes and causes an Error whenever a different plugin is being watched.

The initial Issue is solved though.

from bimdata-viewer-sdk.

Related Issues (7)

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.