GithubHelp home page GithubHelp logo

the-diamondback-lab / dbkredux Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 3.04 MB

The front-end to The DBK's main website - powered by React and Next.js.

Home Page: https://dbknews.com

JavaScript 69.86% CSS 30.14%
reactjs nextjs zeit-now diamondback maryland news-website

dbkredux's People

Contributors

akguthal avatar dbkadmin avatar fishnal avatar rmmr1002 avatar unicornware avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

raymondchiwaz

dbkredux's Issues

Unable to build project

Describe the bug
After running the command now in the terminal, I receive the following error:

> Error! Build failed
> Error! Check your logs at https://dbk-frontend-7vs138sqx.now.sh/_logs or run `now logs dbk-frontend-7vs138sqx.now.sh`

To Reproduce
Steps to reproduce the behavior:

  1. Run now in the project root
  2. See error

Expected behavior
The project should be built and a unique url to view the project should be generated.

Screenshots
Screen Shot 2019-09-06 at 2 10 36 PM

Additional context

Attempted this fix: https://github.com/zeit/now-builders/issues/155#issuecomment-452057544

Logs from https://zeit.co/the-diamondback-lab/dbk-frontend/7vs138sqx

yarn info @now/build-utils@latest...
yarn info @now/next...
missing `engines` in `package.json`, using default range: 8.10.x
installing to /tmp/3c02bf36
yarn install v1.17.3
info No lockfile found.
[1/4] Resolving packages...
warning html-react-parser > react-dom-core > react > fbjs > [email protected]: core-js@<2.6.8 is no longer maintained. Please, upgrade to core-js@3 or at least to actual version of core-js@2.
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@zeit/next-css > [email protected]" has unmet peer dependency "webpack@^4.0.0".
warning "@zeit/next-css > [email protected]" has unmet peer dependency "webpack@^4.4.0".
warning "@zeit/next-sass > [email protected]" has unmet peer dependency "webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0".
warning "next-ga > [email protected]" has unmet peer dependency "prop-types@^15.6.0".
warning " > [email protected]" has unmet peer dependency "prop-types@>=15".
warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0".
warning " > [email protected]" has unmet peer dependency "webpack@^3.0.0 || ^4.0.0".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 64.80s.
running "yarn run now-build"
yarn run v1.17.3
$ next build
[18:04:12] Compiling client
[18:04:12] Compiling server
[18:04:19] Compiled server in 7s
[18:04:38] Compiled client in 26s
Done in 27.85s.
Found next.config.js:
module.exports = function(...args) {
  let original = require('./next.config.original.1567793050287.js');

  const finalConfig = {};
  const target = { target: 'serverless' };

  if (typeof original === 'function' && original.constructor.name === 'AsyncFunction') {
    // AsyncFunctions will become promises
    original = original(...args);
  }

  if (original instanceof Promise) {
    // Special case for promises, as it's currently not supported
    // and will just error later on
    return original
      .then((orignalConfig) => Object.assign(finalConfig, orignalConfig))
      .then((config) => Object.assign(config, target));
  } else if (typeof original === 'function') {
    Object.assign(finalConfig, original(...args));
  } else if (typeof original === 'object') {
    Object.assign(finalConfig, original);
  }

  Object.assign(finalConfig, target);

  return finalConfig;
}

Error: No serverless pages were built. https://err.sh/zeit/now/now-next-no-serverless-pages-built
    at Object.module.exports.178.exports.build (/tmp/396dbae88ede4a65/.build-utils/.builder/node_modules/@now/next/dist/index.js:4113:19)
    at <anonymous>
worker exited with code 20 and signal null
done
done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.