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.

Hi, can you help me? Docz doesn’t start…

 ERROR  Failed to compile with 1 errors23:29:58

 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/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/babel-preset-react/lib/index.js
    at createDescriptor (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:138:11)
    at items.map (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:69:50)
    at Array.map (<anonymous>)
    at createDescriptors (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:69:29)
    at createPresetDescriptors (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:61:10)
    at passPerPreset (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:53:96)
    at cachedFunction (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/caching.js:32:19)
    at presets.presets (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-descriptors.js:25:84)
    at mergeChainOpts (/Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:304:26)
    at /Users/max/Projetos/mytestapp/apps/d4_web/assets/node_modules/docz-core/node_modules/@babel/core/lib/config/config-chain.js:267:7

 @ multi ./node_modules/docz-core/node_modules/babel-polyfill/lib/index.js ./.docz/app/index.jsx

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:16
  • Comments:24 (12 by maintainers)

github_iconTop GitHub Comments

14reactions
pedronauckcommented, Jun 17, 2018

Babel 6 support now is possible by using docz-plugin-babel6 release in v0.2.6

// doczrc.js
import { babel } from 'docz-plugin-babel6'

export default {
  plugins: [babel()]
}
7reactions
pedronauckcommented, Jun 13, 2018

Exactly @Ronnyrr, docz just works with babel 7, so you need to use it instead of babel 6 by now. I thinking of a solution for that, like a babel6property on project configuration… what do you think about that?

Read more comments on GitHub >

github_iconTop Results From Across the Web

What to Do If Your Car Won't Start | Family Handyman
If the Car Clicks When Trying to Start. Try Cycling the Key; Try Tapping on the Battery Terminals · If There's No Click...
Read more >
14 Reasons Why Your Car Won't Start (With Fixes) | RepairSmith
14 Reasons Why My Car Won't Start · 1. Dead Battery · 2. Bad Battery Connection · 3. Bad Alternator · 4. Your...
Read more >
What to Do When Your Computer Won't Start | PCMag
If your computer won't start, don't panic (yet). Here are some troubleshooting steps to take when your computer fails to boot correctly.
Read more >
7 Reasons Why Your Car Won't Start - Erie Insurance
Dead car battery : A dead battery is the most common reason why a car won't start. · Battery corrosion: Corrosion on your...
Read more >
10 Reasons Why Your Car Won't Start - Now from Nationwide
10 Reasons Why Your Car Won't Start · 1. Bad or dead battery · 2. Bad alternator · 3. Starter motor · 4....
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