Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
See original GitHub issueCurrent behavior
To reproduce
git clone https://github.com/mesqueeb/planetar
git checkout vue-docgen-api-parse
cd api-card/ui
npm i
cd dev
npm i && cd ../
npm run dev
Expected behavior
No error 😄
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Critical dependency: require function is used in a way ...
Critical dependency : require function is used in a way in which dependencies cannot be statically extracted · Subscribe to RSS.
Read more >Critical dependency: require function is used in a way ...
The error originates from the esm target, which should not have any require statements. It'd be nice to explore that built module and...
Read more >Incompatible with Webpack
"require function is used in a way, in which dependencies cannot be statically extracted" These errors come when trying to "require" specific modules, ......
Read more >Critical dependency: require function is used in a way ...
Critical dependency : require function is used in a way in which dependencies cannot be statically extracted ; samueljbarrick May 4, 2020, 10:28pm ......
Read more >WARNING in Critical dependency: require function is used ...
Node.js – WARNING in Critical dependency: require function is used in a way in which dependencies cannot be statically extracted · Best Solution...
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 Free
Top 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

@elevatebart feel free to close this issue and document that loader you made for this use-case! 😉
@fernandopasik It is a great idea. Would you be OK with making a PR?
To answer your question,
vue-simple-docgen-loaderis meant to be used as follows:The code above will print the object generated by vue-docgen-api without modifications. You can find the specifications for this object here and a full example here @pocka 's loader soes some modification to the object to adapt it to the storybook datamodel.