Closed wonder95 closed 2 years ago
You created this issue using the π¨ Bug report template therefore it has been flagged as such.
Hi there, thank you so much for your contribution!
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 include the following:
package.json
file.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
- Prismic Open-Source team
Hi @wonder95, could you provide a code snippet showing how you are using @prismicio/client
in your project? Thanks! π
@angeloashmore It turns out it was my error. In following some examples I was importing like so
import Prismic from '@prismicio/client`
instead of
import * as prismic from '@prismicio/client'
Once I fixed that, the problem went away.
Awesome! Glad to hear you found a fix. π
If you come any examples from Prismic that use the default export, please let us know and we'll get them updated. π
Versions
Reproduction
Additional Details
Steps to reproduce
@prismicio/client
What is expected?
Successful site deployment
What is actually happening?
I get the following console error on Netlify
Here is my
package.json
: