Fresh studio install compiles with warnings in moment.js
3 replies
Last updated: May 11, 2020
A
A fresh studio install compiles with warnings in moment.js. It looks like an out of date dependency:
Compiled with warnings. Warning in ./node_modules/moment/moment.js 2092:16-2096:17 Critical dependency: the request of a dependency is an expression @ ./node_modules/moment/moment.js @ ./node_modules/@sanity/form-builder/lib/inputs/DateInputs/BaseDateTimeInput.js @ ./node_modules/@sanity/form-builder/lib/inputs/DateInputs/DateInput.js @ ./node_modules/@sanity/form-builder/lib/inputs/DateInputs/index.js @ ./node_modules/@sanity/form-builder/lib/sanity/inputResolver/defaultInputs.js @ ./node_modules/@sanity/form-builder/lib/sanity/inputResolver/inputResolver.js @ ./node_modules/@sanity/form-builder/lib/sanity/SanityFormBuilderContext.js @ ./node_modules/@sanity/form-builder/lib/sanity (part:@sanity/form-builder) @ ./node_modules/@sanity/desk-tool/lib/components/BrokenReferences.js @ ./node_modules/@sanity/desk-tool/lib/utils/withInitialValue.js @ ./node_modules/@sanity/desk-tool/lib/pane/DocumentPaneProvider.js @ ./node_modules/@sanity/desk-tool/lib/pane/Pane.js @ ./node_modules/@sanity/desk-tool/lib/DeskToolPanes.js @ ./node_modules/@sanity/desk-tool/lib/DeskTool.js @ ./node_modules/@sanity/desk-tool/lib/tool.js @ ./node_modules/@sanity/desk-tool/lib/tool.js (all:part:@sanity/base/tool) @ ./node_modules/@sanity/default-layout/lib/defaultLayoutRouter.js @ ./node_modules/@sanity/default-layout/lib/components/DefaultLayoutContainer.js (part:@sanity/base/root) @ ./node_modules/@sanity/base/lib/components/SanityRoot.js (part:@sanity/base/sanity-root) @ ./node_modules/@sanity/server/lib/browser/entry-dev.js @ multi ./node_modules/normalize.css/normalize.css ./node_modules/@sanity/server/lib/browser/entry-dev.js
May 11, 2020, 9:46 AM
P
Hi Alejandro, thanks for reporting 👍 Am I right to assume you’re running the latest versions of the Studio in this fresh install? (
Also, what version of Node/NPM are you on?
sanity versions)
Also, what version of Node/NPM are you on?
May 11, 2020, 12:01 PM
A
Latest
.13update fixed it. Sorry about that!
May 11, 2020, 9:35 PM
P
Glad to hear! Thanks for confirming 🤘
May 11, 2020, 9:37 PM
Sanity– build remarkable experiences at scale
Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.