Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Creating Objects and Issues in Demo Build #130

Closed
rorycor opened this issue Aug 3, 2018 · 6 comments
Closed

Creating Objects and Issues in Demo Build #130

rorycor opened this issue Aug 3, 2018 · 6 comments

Comments

@rorycor
Copy link

rorycor commented Aug 3, 2018

Hi, I downloaded the 'react-planner-master' file from this repository and have been using it to run react-planner locally however I've been experiencing a few errors such as walls missing textures and items i.e. sofa not appearing in 3D. Would anyone know why these issues would occur when ran locally from the file.

I also have a query about how to create new items in the catalogue. I've tried copying an existing item in the src catalog, renaming the files, editing the planner-element.jsx, editing the mycatalog.js and editing the catalog under dist to reflect the changes I've made but I can't make any new items appear in the catalogue.

Any help would be greatly appreciated as I'm new to using react-planner.

@danilosalvati
Copy link
Member

Hi @roryimacit,
the issue in the first question seems strange as we usually use the planner locally for development... Have you started the project using npm start or are you serving the static pages with a local webserver? This step is required as threejs cannot load textures or models without a webserver for security reasons...

For the second question, it seems you have followed all required steps for a new catalog element... There are any errors in the developer console?

@rorycor
Copy link
Author

rorycor commented Aug 3, 2018

Hi @danilosalvati,

I tried started the project through visual studio code using 'npm start' and received these errors, maybe it'll help you determine where it is exactly I'm going wrong:

react-planner@2.0.2 start C:\Users\roryc\OneDrive\Documents\react-planner-master\react-planner-master
webpack-dev-server --inline --config demo/webpack.config.js --port 9000 --mode development

'webpack-dev-server' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-planner@2.0.2 start: webpack-dev-server --inline --config demo/webpack.config.js --port 9000 --mode development
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the react-planner@2.0.2 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\roryc\AppData\Roaming\npm-cache_logs\2018-08-03T10_37_08_295Z-debug.log
PS C:\Users\roryc\OneDrive\Documents\react-planner-master\react-planner-master>

@danilosalvati
Copy link
Member

It seems like you forgot to install dependencies using npm install

@rorycor
Copy link
Author

rorycor commented Aug 3, 2018

Thanks @danilosalvati! Everything is running hunky dory for me now, I'll test and see if I can get my catalogue issue to occur.

@rorycor
Copy link
Author

rorycor commented Aug 3, 2018

That's me flying now, objects are appearing in the catalogue no bother, thanks for your help @danilosalvati

@danilosalvati
Copy link
Member

You are welcome 😄

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants