GithubHelp home page GithubHelp logo

Comments (11)

Yaxian avatar Yaxian commented on September 24, 2024

try to modify L12 in package.json to

"start": "cross-env NODE_ENV=development HOT_RELOADING=true node bin/start.js"

then

npm start

or directly

./node_modules/.bin/cross-env  NODE_ENV=development HOT_RELOADING=true node bin/start.js

from forge-rcdb.nodejs.

Mujtaba4ahmed avatar Mujtaba4ahmed commented on September 24, 2024

I will try that now.

Also, I am getting Autodesk is not defined in my browser console.
why do you think this is happening?
Please respond asap
thanks.

from forge-rcdb.nodejs.

Yaxian avatar Yaxian commented on September 24, 2024

Maybeviewer.js loaded failed. You should ask @leefsmp for help.

from forge-rcdb.nodejs.

Mujtaba4ahmed avatar Mujtaba4ahmed commented on September 24, 2024

Is viewer.js in the folder? He currently seems to be offline. how do I reach him?

from forge-rcdb.nodejs.

Yaxian avatar Yaxian commented on September 24, 2024

just wait. It was removed after refactoring by @leefsmp .

from forge-rcdb.nodejs.

Mujtaba4ahmed avatar Mujtaba4ahmed commented on September 24, 2024

I tried the solution you suggested. It is obviously going into loop.
calling npm start which inturn calls npm start is a loop.

from forge-rcdb.nodejs.

Yaxian avatar Yaxian commented on September 24, 2024

sorry. I edited it. try again

from forge-rcdb.nodejs.

Mujtaba4ahmed avatar Mujtaba4ahmed commented on September 24, 2024

I don't see any change.

from forge-rcdb.nodejs.

leefsmp avatar leefsmp commented on September 24, 2024

I updated the config in the repo, should be ok for you now. Look here for more details. The reason is that I'm using a local copy of the viewer3D.js but we are not allowed to push that to public repos due to MIT license, so you need to use the CDN version or download it locally yourself, if you want to run offline for example.

As for your initial issue, you need to make sure NODE_ENV variable is defined because it is what controls which config is being used: "${NODE_ENV}.config.js" where NODE_ENV can be "development" or "production".

Hope that helps.

from forge-rcdb.nodejs.

Mujtaba4ahmed avatar Mujtaba4ahmed commented on September 24, 2024

I looked into it. I have a question that where should I download the viewer3D.js file for it run locally on my system.

Also, I am getting this error in the console:
Failed to load resource: the server responded with a status of 404 3000/resources/models/dev/engine/0.pf (Not Found)

I looked into this path in my project and there is no resources/models/dev/ 'dev' folder in it.
Could you help me out with this?

from forge-rcdb.nodejs.

leefsmp avatar leefsmp commented on September 24, 2024

You can download the viewer source from extract.autodesk.io.

from forge-rcdb.nodejs.

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.