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

[bug]: Module '"@strapi/blocks-react-renderer"' has no exported member 'BlocksContent' #14

Closed
thiphariel opened this issue Dec 11, 2023 · 6 comments · Fixed by #15
Closed

Comments

@thiphariel
Copy link

thiphariel commented Dec 11, 2023

What version of @strapi/blocks-react-renderer are you using?

  • Nextjs 14.0.4
  • Nodejs lts/iron (20.10.x)
  • React 18+
  • @strapi/blocks-react-renderer@latest (1.0.0-beta.0)

What's Wrong?

VSCode returning that the module isn't exporting any type BlocksContent as shown on the readme

To Reproduce

Paste the following import into a project with the plugin installed :

import {
  BlocksRenderer,
  type BlocksContent,
} from '@strapi/blocks-react-renderer'

Expected Behaviour

The module should export a usable type I guess?

@remidej
Copy link
Contributor

remidej commented Dec 12, 2023

Sorry about that, I merged a PR to main that included readme changes (#13), but haven't released that change yet

@thiphariel
Copy link
Author

Hey, all good! Feel free to close the issue whenever you publish it then! And thank you :-)

@remidej
Copy link
Contributor

remidej commented Dec 12, 2023

I just published it, you can try version beta.1 :)

@thiphariel
Copy link
Author

Hi again!

I don't think that beta.1 includes your PR sadly, when you look at the index.ts on that specific tag : https://github.com/strapi/blocks-react-renderer/blob/v1.0.0-beta.1/src/index.ts

The main branch does though.

Sorry for the extra work haha!

@remidej
Copy link
Contributor

remidej commented Dec 12, 2023

Indeed I forgot to pull the changes before creating the release 🤡

Thanks for the tip! It should normally be okay this time with beta.2

@thiphariel
Copy link
Author

Perfect! Thank you again :D

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

Successfully merging a pull request may close this issue.

2 participants