Uncaught SyntaxError: Cannot use import statement outside a module
Closed this issue · 1 comments
Installed latest version(0.12.0) and import ReactSpeedometer from 'react-d3-speedometer'
is throwing Uncaught SyntaxError: Cannot use import statement outside a module.
I am new to this, please let me know how I can provide more info.
This is my package.json
{
"name": "",
"version": "0.1.0",
"private": true,
"dependencies": {
"@aws-amplify/auth": "^2.1.1",
"@aws-amplify/storage": "^2.1.1",
"axios": "^0.19.2",
"bootstrap": "^4.5.0",
"bootstrap-datetimepicker": "0.0.7",
"lodash": "^4.17.15",
"moment": "^2.26.0",
"react": "^16.13.1",
"react-bootstrap": "^1.0.1",
"react-bootstrap-date-picker": "^5.1.0",
"react-bootstrap-datetimepicker": "0.0.22",
"react-d3-speedometer": "^0.12.0",
"react-datepicker": "^2.16.0",
"react-dom": "^16.13.1",
"react-dropzone": "^11.0.1",
"react-idle-timer": "^4.2.12",
"react-moment": "^0.9.7",
"react-notifications-component": "^2.4.0",
"react-promise-tracker": "^2.1.0",
"react-redux": "^7.2.0",
"react-router-dom": "^5.2.0",
"react-s3-uploader": "^4.9.3",
"react-scripts": "0.9.5",
"react-spinners": "^0.9.0",
"react-toast-notifications": "^2.4.0",
"redux": "^4.0.5",
"redux-persist": "^6.0.0"
},
"devDependencies": {},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
}