CesiumGS / CesiumGS/obj2gltf

Wont work on react.js

Open
#188 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.9k
Forks
311
PR merge metrics
No merged PRs in 30d

Description

I am trying to use library for my react.js project but when i am importing the library and trying the example i am getting this error ;
./node_modules/cesium/index.js
SyntaxError: C:\Users\ibocan\Desktop\Kepler\Frontend\node_modules\cesium\index.js: 'return' outside of function (9:4)

7 | if (process.env.NODE_ENV === 'production') {
8 | module.exports = require(path.join(__dirname, 'Build/Cesium/Cesium'));
> 9 | return;
| ^
10 | }
11 |
12 | // Otherwise, use un-optimized requirejs modules for improved error checking. For example 'development' mode

My dependincies;
react.js:

"react": "^16.8.0",
"react-dom": "^16.8.0",
"obj2gltf": "^3.0.2",

could someone help me ?

thanks in advence

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.