kuflash / react-router-sitemap

Generate sitemap.xml by React Router configuration
MIT License
249 stars 57 forks source link

Unexpected token error #96

Open john-martinez-729 opened 4 years ago

john-martinez-729 commented 4 years ago

When I call the yarn command to build the sitemap, I get this error:

error

My package.json is the following: { "name": "velocity_channel", "version": "0.1.0", "private": true, "dependencies": { "@babel/preset-react": "^7.6.3", "@babel/register": "^7.6.2", "@nivo/circle-packing": "^0.59.1", "@nivo/geo": "^0.59.2", "@nivo/pie": "^0.59.1", "babel-cli": "^6.26.0", "babel-loader": "8.0.4", "babel-preset-es2015": "^6.24.1", "babel-preset-react": "^6.24.1", "browser-cookies": "^1.2.0", "classnames": "^2.2.6", "he": "^1.2.0", "history": "^4.7.2", "jsonwebtoken": "^8.5.1", "lodash": "^4.17.11", "moment": "^2.24.0", "prop-types": "^15.6.2", "query-string": "^6.2.0", "quill": "1.3.6", "quill-image-drop-module": "^1.0.3", "react": "^16.11.0", "react-autosuggest": "^9.4.3", "react-avatar-edit": "^0.7.1", "react-bootstrap": "^1.0.0-beta.5", "react-bootstrap-select": "^0.14.0", "react-bootstrap-typeahead": "^3.4.6", "react-butterfiles": "^1.2.1", "react-calendar": "^2.19.0", "react-cookie": "^3.0.8", "react-date-picker": "^7.5.0", "react-dom": "^16.7.0", "react-ga": "^2.6.0", "react-html-parser": "^2.0.2", "react-icons": "^3.4.0", "react-iframe": "^1.8.0", "react-loading": "^2.0.3", "react-moment": "^0.9.2", "react-paginate": "^6.3.0", "react-quill": "^1.3.3", "react-redux": "^6.0.0", "react-router": "^5.1.2", "react-router-bootstrap": "^0.24.4", "react-router-dom": "^4.3.1", "react-router-redux": "^4.0.8", "react-router-sitemap": "^1.2.0", "react-scripts": "2.1.3", "react-select": "^2.4.3", "react-select-country-list": "^2.0.1", "react-tagsinput": "^3.19.0", "react-toastify": "^4.5.2", "react-youtube": "^7.9.0", "redux": "^4.0.1", "redux-devtools-extension": "^2.13.8", "redux-persist": "^5.10.0", "redux-saga": "^1.0.1", "uuid": "^3.3.2" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "sitemap": "babel-node ./src/routes/sitemap-builder" }, "eslintConfig": { "extends": "react-app" }, "browserslist": [ ">0.2%", "not dead", "not ie <= 11", "not op_mini all" ], "devDependencies": { "eslint-config-airbnb": "^17.1.0", "eslint-config-prettier": "^4.0.0", "eslint-plugin-import": "^2.16.0", "eslint-plugin-jsx-a11y": "^6.2.1", "eslint-plugin-prettier": "^3.0.1", "eslint-plugin-react": "^7.12.4", "prettier": "^1.16.4" } }

kuflash commented 4 years ago

@john-martinez-729 Can you try solution from https://github.com/kuflash/react-router-sitemap/issues/83?