bimspot / xeokit-react

Integratation of the xeokit viewer into a React application.
32 stars 22 forks source link

Start error #19

Open MilanRadon opened 4 years ago

MilanRadon commented 4 years ago

I have a problem with starting project. What is wrong? Snímek obrazovky 2020-03-04 v 12 46 39

r06521601 commented 4 years ago

the same

MaximilianFranz commented 3 years ago

If still relevant, I've been able to fix the problem by simply moving Viewer.js and Viewers.js from src/ into demo/src and updating /removing all the references to xeokit-react within the demo. This way, there is no dependency to the extra package and the babel parsing works like expected on the react files.

OrangeCat3 commented 2 years ago

@MaximilianFranz @r06521601 today i solved this problem, first i switch my nodejs v16 to v12, then npm run build and download xeokit-sdk(source code) to src/build , change all import sdk way in viewer.js/viewers.js such as import { NavCubePlugin } from './xeokit-sdk/src/plugins/NavCubePlugin/NavCubePlugin'; last, switch to demo and npm run start! success!