ctrl-alt-del-world / midway

Headless Starter with Sanity + Gatsby + Shopify Repo
https://midway.ctrlaltdel.world/documentation/
MIT License
261 stars 33 forks source link

Failure to Launch: Error with sanity-plugin-tabs #14

Closed willTastyMakers closed 4 years ago

willTastyMakers commented 4 years ago

Hi,

I am wondering if anyone else is having this issue; After running install in the studio/, studio init, and finally npm run start, I am getting the following error

✔ Compiling...
Failed to compile.

Error in ./node_modules/sanity-plugin-tabs/src/index.js
Module parse failed: Unexpected token (16:19)
You may need an appropriate loader to handle this file type.
| 
| class Tabs extends React.Component {
|   static propTypes = {
|     type: PropTypes.shape({
|       fieldsets: PropTypes.array.isRequired,
 @ ./schemas/tabs/pageContent.ts 8:47-76
 @ ./schemas/schemas.ts (part:@sanity/base/schema)
 @ ./node_modules/@sanity/default-layout/lib/schemaErrors/SchemaErrorReporter.js
 @ ./node_modules/@sanity/default-layout/lib/DefaultLayout.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

I have search through every typescript project I can find using this repo as a template or sanity-plugin-tabs in general and can't make heads or tails of what I am doing wrong, or what I might do to fix this.

Any push in the right direction would be graciously accepted.

Will

willTastyMakers commented 4 years ago

I figured out my issues. I had to update all of the sanity packages to their latest version. Also the santiy-plugin-tabs needs to be update to 2... If anyone else runs into this problem, you can take a look at my template/fork