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)
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'));
My dependincies; react.js:
could someone help me ?
thanks in advence