Dev server crash
See original GitHub issueBug Report
To Reproduce
- Run
yarn docz dev
doczrc.js
const { babel } = require('docz-plugin-babel6');
module.exports = {
title: 'CNC Citadel',
description: 'The home for CNC projects.',
plugins: [babel()],
};
citadel on publish-fixes [!] is 📦 ⚠ via ⬢ v9.11.1
[I] ➜ yarn start
yarn run v1.9.4
$ docz dev
ERROR Failed to compile with 1 errors 19:43:49
error in ./.docz/app/index.jsx
Module build failed (from ./node_modules/happypack/loader.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/babel-preset-react-app/index.js
at createDescriptor (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:138:11)
at items.map (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:69:50)
at Array.map (<anonymous>)
at createDescriptors (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:69:29)
at createPresetDescriptors (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:61:10)
at passPerPreset (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:53:96)
at cachedFunction (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/caching.js:32:19)
at presets.presets (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:25:84)
at mergeChainOpts (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:303:26)
at /Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:266:7
@ multi ./node_modules/docz-core/node_modules/babel-polyfill/lib/index.js ./.docz/app/index.jsx
WAIT Compiling... 19:43:49
ERROR Failed to compile with 1 errors 19:43:50
error in ./.docz/app/index.jsx
Module build failed (from ./node_modules/happypack/loader.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/babel-preset-react-app/index.js
at createDescriptor (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:138:11)
at items.map (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:69:50)
at Array.map (<anonymous>)
at createDescriptors (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:69:29)
at createPresetDescriptors (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:61:10)
at passPerPreset (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:53:96)
at cachedFunction (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/caching.js:32:19)
at presets.presets (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:25:84)
at mergeChainOpts (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:303:26)
at /Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:266:7
at buildRootChain (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:56:29)
at loadPrivatePartialConfig (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/partial.js:55:55)
at Object.loadPartialConfig (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/@babel/core/lib/config/partial.js:80:18)
at Object.<anonymous> (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/babel-loader/lib/index.js:82:26)
at Generator.next (<anonymous>)
at step (/Users/wellingtoncordeiro/Documents/projects/cnc/citadel/node_modules/docz-core/node_modules/babel-loader/lib/index.js:3:221)
@ multi ./node_modules/docz-core/node_modules/babel-polyfill/lib/index.js ./.docz/app/index.jsx
Expected behavior
Dev server starts up like normal
Environment
- OS: OSX 10.13.1
- Node/npm version: Node 9.11.1, yarn 1.9.4
Issue Analytics
- State:
- Created 5 years ago
- Reactions:5
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Server Down: What to Do When My Server Crashes?
So if your server crashed, it is always advisable to try these common fixes first. In every server crash (just like in the...
Read more >Dev server crashes with react-scripts v4 · Issue #1705 - GitHub
When running styleguidist server with react-scripts 4.0.0 and open in the browser, the server crashes with "Error: Already listening" message.
Read more >Dev server crash - War Thunder Forums
Hey guys so I decided to take a look at the dev server, downloaded the client but then scrapped the idea. Then I...
Read more >Crash issues on dev server : r/Warthunder - Reddit
So I reinstalled the dev server today because it's back. It was fine for a bit, then randomly crashed in a Jaguar GR1.A...
Read more >Fix webpack dev-server crash caused by 1.5gb limit - GitLab
What does this MR do? Increase node memory limit to 4gb for webpack dev server. 'Fixes' FATAL_ERROR until we reign in...
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
Wouldn’t really say that’s solving it, but that is what you have to do right now if you are using Babel 6 is to not upgrade.
In the new release and since Babel 7 now is a reality, we’re dropping support for older versions of babel. Please, if you want to use docz new version, upgrade your babel. You can use babel-upgrade by just running: