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:
- Created 2 years ago
- Comments:9
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Docs updated, closing
Probably the html template.