Coder Social home page Coder Social logo

Comments (5)

hessius avatar hessius commented on July 17, 2024 2

I am encountering the same error, @DevinEdwards and can confirm I got it working with your fix, although it took a few attempts... I had initially run sanity install, deleted the node_modules and package-lock.json, reran package installation with yarn but with the same result, deleted node_modules and yarn.lock and reran sanity install and presto!

from sanity-plugin-tabs.

mornir avatar mornir commented on July 17, 2024

Hi!
I've been using this plugin with Sanity v2.1.x and didn't have any problem.
What error do you get in the console?

from sanity-plugin-tabs.

DevinEdwards avatar DevinEdwards commented on July 17, 2024

@nboliver I was getting an error as well:

Uncaught TypeError: Cannot read property 'sanity' of undefined

I remove my .lock file and node_modules folder. And did a fresh yarn install and it seemed to clear up the issue. Not sure exactly why this was happening though.

from sanity-plugin-tabs.

azzlack avatar azzlack commented on July 17, 2024

@hessius @DevinEdwards I just experienced the same problem (and solution) but with a different plugin, wondering perhaps if there is something about yarn and sanity that can create some issues with dependencies.

from sanity-plugin-tabs.

vamcs avatar vamcs commented on July 17, 2024

I've had this problem when migrating from npm to yarn. I guess it was due to some difference in package resolution, but one of things that solved it was when the Sanity CLI suggested installing a missing dependency to styled-components.

from sanity-plugin-tabs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.