Skip to content

Error: Cannot find module 'react-static-routes' in 5.0.0-beta.1 #326

@pdjota

Description

@pdjota

Hello, this report is similar to #56 but with more recent versions:

pablo ~/P/react-static> react-static -v
5.0.0-beta.1
pablo ~/P/react-static> react-static create

? What should we name this project? my-static-site
? Select a template below... basic
=> Creating new react-static project...
=> Installing dependencies with: Yarn...
warning react-static > babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
warning react-static > babel-preset-latest@6.24.1: We're super 😸  excited that you're trying to use ES2017+ syntax, but instead of making more yearly presets 😭 , Babel now has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. preset-env without options will compile ES2015+ down to ES5 just like using all the presets together and thus is more future proof. It also allows you to target specific browsers so that Babel can do less work and you can ship native ES2015+ to user 😎 ! We are also in the process of releasing v7, so please give http://babeljs.io/blog/2017/09/12/planning-for-7.0 a read and help test it out in beta! Thanks so much for using Babel 🙏, please give us a follow on Twitter @babeljs for news on Babel, join slack.babeljs.io for discussion/development and help support the project at opencollective.com/babel
warning react-static > babel-preset-latest > babel-preset-es2017@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
warning react-static > babel-preset-latest > babel-preset-es2016@6.24.1: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update! 
warning eslint-config-react-tools > eslint-plugin-class-property@1.1.0: please use eslint-plugin-babel and babel/semi
warning "babel-loader@7.1.2" has unmet peer dependency "babel-core@6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-class-property@^1.0.6".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-import@^2.7.0".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-react@^7.1.0".
warning "eslint-config-airbnb@15.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-class-property@^1.0.6".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-import@^2.7.0".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning "eslint-config-react-tools@1.1.2" has unmet peer dependency "eslint-plugin-react@^7.1.0".
warning "eslint-config-airbnb@15.1.0" has incorrect peer dependency "eslint-plugin-jsx-a11y@^5.1.1".
warning "babel-loader@7.1.2" has unmet peer dependency "babel-core@6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc".

=> [✓] Project "my-static-site" created: 19584.995ms

=> To get started:

    cd my-static-site

    yarn start - Start the development server
    yarn build - Build for production
    yarn serve - Test a production build locally

pablo ~/P/r/my-static-site> yarn build
yarn run v1.2.1
$ react-static build

=> Copying public directory...
=> [✓] Public directory copied: 1.631ms
=> Building Routes...
=> [✓] Routes Built: 114.694ms
=> Bundling App...
=> [✓] App Bundled: 4843.633ms
=> Exporting Routes...
{ Error: Cannot find module 'react-static-routes'
    at Function.Module._resolveFilename (module.js:536:15)
    at Function.Module._load (module.js:466:25)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/Users/pablo/Projects/react-static/my-static-site/node_modules/react-static/lib/index.js:459:26)
    at Module._compile (module.js:635:30)
    at Module._extensions..js (module.js:646:10)
    at Object.require.extensions.(anonymous function) [as .js] (/Users/pablo/Projects/react-static/my-static-site/node_modules/babel-register/lib/node.js:152:7)
    at Module.load (module.js:554:32)
    at tryModuleLoad (module.js:497:12)
    at Function.Module._load (module.js:489:3)
    at Module.require (module.js:579:17)
    at require (internal/module.js:11:18)
    at Object.module.exports.module.deprecate (/Users/pablo/Projects/react-static/my-static-site/dist/static.efa515fe.js:86:18)
    at __webpack_require__ (/Users/pablo/Projects/react-static/my-static-site/dist/static.efa515fe.js:30:30)
    at Object.defineProperty.value (/Users/pablo/Projects/react-static/my-static-site/dist/static.efa515fe.js:523:20) code: 'MODULE_NOT_FOUND' }
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Node: 8.9.1

See also attached package.json and yarn.lock:
https://gist.github.com/pdjota/a37f7e74649627b7a1e0539f3d7c9727

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions