Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in DashboardTool #37

Open
nalmeida opened this issue Mar 20, 2023 · 0 comments
Open

Error in DashboardTool #37

nalmeida opened this issue Mar 20, 2023 · 0 comments

Comments

@nalmeida
Copy link

Hi, I found this repository through the excellent video between Bryan Robinson and Mike Wagz (https://www.youtube.com/watch?v=7U-1WnXpAnc).

I followed the initial instructions but was not successful with the "studio" part. I filled in the variables in the places indicated and they seem to be correct.

After that I was asked to sanity login (I needed to install the latest version and do the global install). After successfully logging in I ran npm start inside ./studio but I am getting the error below:

npm start

> studio@1.0.0 start
> sanity start

(node:57920) [DEP0128] DeprecationWarning: Invalid 'main' field in '/Users/nicholasalmeida/github.com/nalmeida/sane-eleventy/studio/node_modules/webpack-dev-middleware/package.json' of 'middleware.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
 Checking configuration files...
 Compiling...webpack built a10f7c17a0ddbb5ec2b9 in 31063ms
 Compiling...
Failed to compile.

Error in ./node_modules/@sanity/dashboard/src/DashboardTool.js
Module parse failed: Unexpected token (10:2)
You may need an appropriate loader to handle this file type.
|
| const DashboardIcon = () => (
|   <svg
|     data-sanity-icon
|     viewBox="0 0 25 25"
 @ ./node_modules/sanity-plugin-dashboard-widget-netlify/dist/components/NetlifyWidget.js 12:17-45
 @ ./node_modules/sanity-plugin-dashboard-widget-netlify/dist/widget.js
 @ ./node_modules/sanity-plugin-dashboard-widget-netlify/dist/index.js
 @ ./node_modules/sanity-plugin-dashboard-widget-netlify/dist (all:part:@sanity/dashboard/widget)
 @ ./node_modules/@sanity/dashboard/lib/containers/WidgetContainer.js (part:@sanity/dashboard/widget-container)
 @ ./node_modules/@sanity/dashboard/lib/components/WidgetGroup.js
 @ ./node_modules/@sanity/dashboard/lib/containers/Dashboard.js
 @ ./node_modules/@sanity/dashboard/lib/DashboardTool.js
 @ ./node_modules/@sanity/vision/lib/VisionTool.js (all:part:@sanity/base/tool)
 @ ./node_modules/@sanity/default-layout/lib/router.js
 @ ./node_modules/@sanity/default-layout/lib/Root.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

Any suggestion about how to solve it?
It may be related to the repo been outdated with the latest versions of sanity / eleventy / netlify

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant