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

SyntaxError: Named export 'whitespace' not found. The requested module './../_node_modules/hast-util-whitespace/lib/index.js' #344

Closed
radaalinmihai opened this issue Jul 24, 2024 · 4 comments
Labels
bug Something isn't working

Comments

@radaalinmihai
Copy link

radaalinmihai commented Jul 24, 2024

Versions

  • @prismicio/client: v7.7.3
  • node: v20.11.0

Reproduction

The reproduction is simple, install the latest version, which is 7.7.3 on any project and you will be greeted with an error:
image

Steps to reproduce

  1. Create any new project which utilizez @prismic/client@^7.7.3
  2. Run project
  3. Be greeted with error from Reproduction section

What is expected?

No error to be shown

What is actually happening?

Error is shown.

Edit:
On further investigation I think it has something to do with this file: https://github.com/prismicio/prismic-client/blob/master/src/lib/hastToRichText.ts#L2 specifically with that external package 'hast-util-whitespace'

@radaalinmihai radaalinmihai added the bug Something isn't working label Jul 24, 2024
Copy link

This issue has been labeled as a bug since it was created using the 🚨 Bug Report Template.

Hi there, thank you so much for the report!

Following our Maintenance Process, we will review your bug report and get back to you next Wednesday. To ensure a smooth review of your issue and avoid unnecessary delays, please make sure your issue includes the following:

  • Information about your environment and packages you use (Node.js version, package names and their versions, etc.)
    Feel free to attach a copy of your package.json file.
  • Any troubleshooting steps you already went through
  • A minimal reproduction of the issue, and/or instructions on how to reproduce it

If you have identified the cause of the bug described in your report and know how to fix it, you're more than welcome to open a pull request addressing it. Check out our quick start guide for a simple contribution process.

If you think your issue is a question (not a bug) and would like quicker support, please close this issue and forward it to an appropriate section on our community forum: https://community.prismic.io

- The Prismic Open-Source Team

@lihbr
Copy link
Member

lihbr commented Jul 24, 2024

Hey @radaalinmihai, thanks for voicing your issue, we're aware of the issue with the latest released and are investigating it. A fix will be released today.

Can you still share your Next.js version and other Prismic package version please?

@lihbr
Copy link
Member

lihbr commented Jul 24, 2024

Hi there,

Once again, thank you so much for reporting this issue and trying out the latest version of our kit!

This should now be fixed in @prismicio/client v7.7.4, update with:

npm update @prismicio/client

I'm gonna close this issue as everything checked in our QA process. If you still experience the issue with the latest version, you're very welcome to reopen this issue!

Thanks again 🙏

@lihbr lihbr closed this as completed Jul 24, 2024
@radaalinmihai
Copy link
Author

Thanks again for the promptness and your speed in fixing this issue! Have a good day!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants