nfl / react-helmet

A document head manager for React
MIT License
17.36k stars 661 forks source link

react-helmet shows error in console #298

Open Marcsimm opened 7 years ago

Marcsimm commented 7 years ago

I am trying to use react-helmet to set our document and after npm install i use it in the app and this and it works locall. But during a build on netlify the package is not installed causing by deploys to fail even dough i can see it's in the package.json and netlify runs a npm install.

Module not found: Error: Can't resolve 'react-helmet'

      <Helmet>
        <meta charSet="utf-8" />
        <title>my title</title>
      </Helmet>

I have tried both 5.0.3 and 5.1.3

my package.json

"dependencies": {
    "apollo-client": "^1.4.1",
    "babel-polyfill": "^6.23.0",
    "classnames": "^2.2.5",
    "cloudinary-core": "^2.3.0",
    "contentful": "^4.4.1",
    "dotenv": "^4.0.0",
    "element-resize-detector": "^1.1.12",
    "fetch-hoc": "^0.1.0",
    "flexboxgrid": "^6.3.1",
    "glob": "^7.1.2",
    "google-map-react": "^0.24.0",
    "graphiql": "^0.10.2",
    "graphql": "^0.10.3",
    "graphql-tag": "^2.4.0",
    "humps": "^2.0.1",
    "intl": "^1.2.5",
    "is-uuid": "^1.0.2",
    "iterall": "^1.1.1",
    "locale": "^0.1.0",
    "lodash": "^4.17.4",
    "moment": "^2.18.1",
    "moment-timezone": "^0.5.13",
    "normalize.css": "^7.0.0",
    "normalizr": "^3.2.3",
    "nuka-carousel": "^2.0.4",
    "object-fit-images": "^3.2.3",
    "pluralize": "^5.0.0",
    "qs": "^6.3.0",
    "raven-js": "^3.15.0",
    "reacon": "^1.3.2",
    "react": "^15.6.1",
    "react-addons-shallow-compare": "^15.6.0",
    "react-apollo": "^1.4.2",
    "react-async-script-loader": "^0.3.0",
    "react-collapse": "^4.0.2",
    "react-compose": "^2.0.0",
    "react-container-query": "^0.9.1",
    "react-datetime": "^2.8.10",
    "react-dnd": "^2.4.0",
    "react-dnd-html5-backend": "^2.4.1",
    "react-dom": "^15.6.1",
    "react-dotdotdot": "^1.1.0",
    "react-flip-move": "^2.9.14",
    "react-helmet": "^5.1.3",
    "react-intl": "^2.3.0",
    "react-markdown": "^2.5.0",
    "react-motion": "^0.5.0",
    "react-redux": "^5.0.5",
    "react-router-dom": "^4.1.1",
    "react-syntax-highlighter": "^5.6.2",
    "react-virtualized": "^9.7.6",
    "react-waypoint": "^7.0.4",
    "react-youtube": "^7.4.0",
    "redux": "^3.7.0",
    "redux-form": "^6.7.0",
    "redux-localstorage": "^0.4.1",
    "redux-optimistic-ui": "^1.0.0",
    "redux-thunk": "^2.2.0",
    "reselect": "^3.0.1",
    "whatwg-fetch": "^2.0.2"
  },
  "devDependencies": {
    "@kadira/react-storybook-addon-info": "^3.3.0",
    "@kadira/react-storybook-decorator-centered": "^1.1.2",
    "@kadira/storybook": "^2.35.3",
    "@kadira/storybook-addon-knobs": "^1.7.1",
    "@kadira/storybook-deployer": "^1.2.0",
    "babel-cli": "^6.24.0",
    "babel-core": "^6.24.0",
    "babel-eslint": "^7.2.3",
    "babel-jest": "^20.0.3",
    "babel-loader": "^7.1.0",
    "babel-plugin-lodash": "^3.2.11",
    "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
    "babel-plugin-transform-imports": "^1.4.0",
    "babel-preset-env": "^1.5.2",
    "babel-preset-react": "^6.23.0",
    "babel-preset-stage-0": "^6.22.0",
    "caniuse-db": "^1.0.30000692",
    "capitalize": "^1.0.0",
    "css-loader": "^0.28.4",
    "cssnano": "^3.10.0",
    "debug": "^2.6.8",
    "ejs-loader": "^0.3.0",
    "enzyme": "^2.8.2",
    "enzyme-to-json": "^1.5.1",
    "eslint": "^3.18.0",
    "eslint-config-airbnb": "^15.0.1",
    "eslint-import-resolver-webpack": "^0.8.1",
    "eslint-plugin-graphql": "^1.0.0",
    "eslint-plugin-import": "^2.3.0",
    "eslint-plugin-jest": "^20.0.3",
    "eslint-plugin-jsx-a11y": "^5.0.3",
    "eslint-plugin-react": "^7.1.0",
    "extract-text-webpack-plugin": "^2.1.2",
    "html-webpack-harddisk-plugin": "^0.1.0",
    "html-webpack-plugin": "^2.28.0",
    "html-webpack-template": "^6.0.1",
    "identity-obj-proxy": "^3.0.0",
    "jest-cli": "^20.0.4",
    "jest-css-modules": "^1.1.0",
    "jest-transform-graphql": "^2.1.0",
    "json-loader": "^0.5.4",
    "postcss-cssnext": "^2.11.0",
    "postcss-import": "^10.0.0",
    "postcss-loader": "^2.0.6",
    "postcss-object-fit-images": "^1.1.2",
    "prop-types": "^15.5.10",
    "react-addons-perf": "^15.4.2",
    "react-addons-test-utils": "^15.6.0",
    "react-hot-loader": "^3.0.0-beta.7",
    "react-storybook-addon-backgrounds": "0.0.7",
    "react-test-renderer": "^15.6.1",
    "redux-mock-store": "^1.2.2",
    "source-map-loader": "^0.2.1",
    "style-loader": "^0.18.2",
    "sw-precache": "^5.2.0",
    "sw-precache-webpack-plugin": "^0.11.3",
    "webpack": "^2.6.1",
    "webpack-dev-server": "^2.5.0",
    "webpack-merge": "^4.1.0"
  },
itsaphel commented 7 years ago

Did you ever get this solved? I'm having the same issue.

aintnorest commented 7 years ago

ditto