GithubHelp home page GithubHelp logo

Comments (11)

tillschweneker avatar tillschweneker commented on September 26, 2024 1

Hey @rexxars,

I can confirm the issue and added a PR for @portabletext/react and @portabletext/toolkit.

from react-portabletext.

rshackleton avatar rshackleton commented on September 26, 2024 1

@tillschweneker Surprisingly the build worked on Vercel when I pushed up a branch with these changes.

Nuking the node_modules and lock files and reinstalling worked. I think I'd done everything but delete the lock file previously. Thanks for the assist.

from react-portabletext.

rexxars avatar rexxars commented on September 26, 2024 1

This should be fixed as of v2.0.1 - please give it a try!

from react-portabletext.

JumboLove avatar JumboLove commented on September 26, 2024

I took a look at publint and there might be something in the package build step that is incorrectly publishing files:

https://publint.bjornlu.com/@portabletext/[email protected]

from react-portabletext.

tillschweneker avatar tillschweneker commented on September 26, 2024

@JumboLove In the meantime you can fix the issue by adding this to your package.json. The original packages will be overridden by the ones from my GitHub.

"overrides": {
    "@portabletext/react": "tillschweneker/react-portabletext",
    "@portabletext/toolkit": "tillschweneker/toolkit"
}

from react-portabletext.

JumboLove avatar JumboLove commented on September 26, 2024

Thank you @tillschweneker for the quick fix!

from react-portabletext.

rshackleton avatar rshackleton commented on September 26, 2024

The overrides option isn't working for me, the @portabletext/toolkit package still throws the same resolution error.

Any change those PRs can be merged so the issue is fixed? The packages are completely unusable to an entire ecosystem currently.

from react-portabletext.

tillschweneker avatar tillschweneker commented on September 26, 2024

@rshackleton Did you try to delete your node_modules folder and package-lock.json and run npm i again?

from react-portabletext.

rshackleton avatar rshackleton commented on September 26, 2024

I've nuked my node_modules and yarn.lock and updated to v2.0.1 of @portabletext/toolkit and the package.json is still missing the "type": "module" property which causes the issue.

Looks like the PR wasn't merged: portabletext/toolkit#6

from react-portabletext.

rshackleton avatar rshackleton commented on September 26, 2024

Ah I was trying to get this working in a demo site but a dependency was forcing a lower version, ensuring all versions are on 2.0.1 has actually resolved the issue. Thanks!

from react-portabletext.

JumboLove avatar JumboLove commented on September 26, 2024

Works great now! Thanks!

https://publint.dev/@portabletext/[email protected]

from react-portabletext.

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.