Comments (7)
Yup. To confirm, adding babel-preset-react
as a direct dependency of our website prevents this bug and is the workaround we are using.
from docusaurus.
On further investigation, it's not just deeply nested - there are circular dependencies coming from Docusaurus. Cycle looks like:
/node_modules/wrappy/wrappy.js
/node_modules/concat-map/index.js
/node_modules/balanced-match/index.js
/node_modules/concat-map/index.js
/node_modules/balanced-match/index.js
/node_modules/fs.realpath/old.js
/node_modules/brace-expansion/index.js
/node_modules/fs.realpath/index.js
/node_modules/minimatch/minimatch.js
/node_modules/inherits/inherits.js
/node_modules/path-is-absolute/index.js
/node_modules/glob/sync.js
/node_modules/glob/common.js
/node_modules/inflight/inflight.js
/node_modules/once/once.js
/node_modules/minimatch/minimatch.js
/node_modules/path-is-absolute/index.js
/node_modules/brace-expansion/index.js
My only direct dependency is Docusaurus, 1.0.0-alpha.35.
from docusaurus.
Looks like our live server's cache invalidation logic was getting caught in a infinite loop when removing modules.
I've rewritten this function to only remove the single module plus one level of children.
For our use case we're reloading generated data.
from docusaurus.
Just tried patching and got a different error:
/path/to/Docusaurus/node_modules/core-js/library/fn/json/stringify.js:4
return $JSON.stringify.apply($JSON, arguments);
^
TypeError: Converting circular structure to JSON
at Object.stringify (<anonymous>)
at stringify (/path/to/Docusaurus/node_modules/core-js/library/fn/json/stringify.js:4:26)
at compile (/path/to/Docusaurus/node_modules/babel-register/lib/node.js:105:42)
at loader (/path/to/Docusaurus/node_modules/babel-register/lib/node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (/path/to/Docusaurus/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
error Command failed with exit code 1.
from docusaurus.
My initial guess after looking at this for a bit @ericnakagawa is the change made to babel-preset-env
from babel-preset-latest
/babel-preset-react
.
from docusaurus.
@rickyvetter Did you keep the babel-preset-env
though?
from docusaurus.
Yes. We still have babel-preset-env
as an indirect dependency.
from docusaurus.
Related Issues (20)
- Upgrade from 3.4.0 to 3.5.2 can't import { useDoc } from '@docusaurus/theme-common/internal'; HOT 5
- Blog section tags component background color taken from footer color HOT 2
- Add support for versioned sidebars which are `.js` not `.json` HOT 3
- How to upgrade for curl get method HOT 1
- Docs has wrong npm start command HOT 2
- Blog author social platforms shorthands are not normalized for inline authors
- Blog authors page bugs for authors with 0 posts HOT 4
- npm2yarn converts command incorrectly for PNPM HOT 1
- Blog authors page is not using baseUrl when rendering a relative author.image_url HOT 5
- Footer links are too wide in mobile view which leads to misclicks HOT 1
- [@docusaurus/plugin-client-redirects] Not working with external links HOT 6
- plugin-pwa: Usage of placeholders in manifest.json allowing implementation of manifest.json for different deployment environments HOT 1
- Inconsistent File Handling Between Development and Build Processes HOT 3
- Do not transform static JS assets HOT 6
- Unicode in Navlinks broken on NodeJS 22 HOT 3
- `float`ing images overlap background of boxes (code boxes, admonitions, etc.) HOT 8
- Regarding plugin @docusaurus/plugin-client-redirects can't set redirection settings for other languages HOT 2
- How can docusaurus' 404 page be adapted to other language pages? HOT 6
- DocCardList element renders the wrong items HOT 1
- Adding `@babel/preset-react` to docusaurus does not enable "Support for the experimental syntax 'jsx'" HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docusaurus.