question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Razzle does not start in development mode

See original GitHub issue

🐛 Bug report

Current Behavior

After upgrade to razzle 4, when I run yarn start it’s not running in dev mode. Just closes after ✨ Done

➜ yarn start
yarn run v1.22.4
$ razzle start
If you have issues with css make sure postcss resolves to v8.2.4.
See: https://razzlejs.org/getting-started#common-problems

CssMinimizerPlugin currently uses clean-css,
we will switch to cssnano once it supports postcss v8.2.4.

 WAIT  Compiling...

✨  Done in 4.76s.

Additional context

razzle.config.js

const path = require('path')
const fs = require('fs')
const AntdDayjsWebpackPlugin = require('antd-dayjs-webpack-plugin');

module.exports = {
  options: {
    buildType: 'spa'
  },
  plugins: [
    {
      name: 'typescript',
      options: {
        useBabel: true,
        forkTsChecker: {
          tslint: false,
        },
      },
    },
  ],
  modifyWebpackConfig({ webpackConfig }) {
    webpackConfig.resolve.modules.unshift(path.resolve(__dirname, 'src'))
    webpackConfig.plugins.push(new AntdDayjsWebpackPlugin())

    return webpackConfig
  },
}

Your environment

Software Version(s)
Razzle 4.0.3
Razzle Plugins razzle-plugin-typescript: 4.0.3
Node v14.15.1
npm/Yarn yarn: 1.22.4
Operating System macOS 11.1
TypeScript typescript: 4.1.3
React react: 17.0.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
fivethreeocommented, Mar 26, 2021

Docs updated, closing

1reaction
fivethreeocommented, Mar 26, 2021

Probably the html template.

Read more comments on GitHub >

github_iconTop Results From Across the Web

First time start in development mode doesn't ... - GitHub
So I need to terminate the batch job and start it again. Steps to reproduce: Delete the build folder; Start the server in...
Read more >
Developers - Razzle does not start in development mode -
Current Behavior. After upgrade to razzle 4, when I run yarn start it's not running in dev mode. Just closes after ✨ Done...
Read more >
Getting Started - Razzle
Below is a list of commands you will probably find useful. npm start#. Runs the project in development mode. You can view your...
Read more >
razzle - npm
Runs the project in development mode. You can view your application at http://localhost:3000. The page will reload if you make edits. npm run ......
Read more >
1. Creating Applications - React Cookbook [Book] - O'Reilly
To start your application, change into the new directory and run it in development mode: $ cd my-app $ npm run develop. You...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found