Comments (11)
Hey @rexxars,
I can confirm the issue and added a PR for @portabletext/react and @portabletext/toolkit.
from react-portabletext.
@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.
This should be fixed as of v2.0.1 - please give it a try!
from react-portabletext.
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.
@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.
Thank you @tillschweneker for the quick fix!
from react-portabletext.
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.
@rshackleton Did you try to delete your node_modules folder and package-lock.json and run npm i
again?
from react-portabletext.
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.
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.
Works great now! Thanks!
https://publint.dev/@portabletext/[email protected]
from react-portabletext.
Related Issues (20)
- Build Fail due to ReferenceError: createElement is not defined HOT 6
- unknownBlockStyle is not working / does nothing
- Children prop no longer available in custom block content HOT 1
- Marks Not Rendering HOT 1
- Issue passing client components on Next.js v14.* HOT 2
- typescript example blog rendering of audio player and code block HOT 1
- Can't do custom components HOT 3
- Cannot render elements with `type` of `text` or `span` using `types` HOT 4
- Can't get item position a list HOT 1
- Dependency Dashboard
- Anchored Headings for Portable Text HOT 2
- Version 2.0.1 breaks backwards compatibility HOT 3
- Can't Get Component to work HOT 1
- ReactServerComponentsError when using with Dynamic Routing in Next.js 13.4 App Router configuration HOT 1
- Nested Lists? HOT 2
- react-portable-text has no property 'toPlainText" HOT 4
- PortableText Typescript Error HOT 5
- Cannot render embedded image HOT 2
- [Feature request] Add a component wrapper prop
- Issues using with Nextjs and tailwind HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-portabletext.