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

Failed to complie with version 1.7.0 #97

Open
niftycodeltd opened this issue Oct 18, 2024 · 3 comments
Open

Failed to complie with version 1.7.0 #97

niftycodeltd opened this issue Oct 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@niftycodeltd
Copy link

Versions

  • @prismicio/next: v1.7.0
  • next: v14.2.15
  • node: v20.15.0

Reproduction

When trying to run local environemnt I get the follwoing error:

Error: 
  x The "use client" directive must be placed before other expressions. Move it to the top of the file to resolve this issue.
   ,-[/Volumes/G-DRIVE/Sites/klarhr/node_modules/.pnpm/@[email protected]_@[email protected][email protected]_@[email protected]_@opentelemetry_juxepsp2vil4b7btg4ixjanjr4/node_modules/@prismicio/next/dist/PrismicNextImage.js:1:1]
 1 | 'use client';
 2 | 'use client';
   : ^^^^^^^^^^^^^
 3 | import { jsx, Fragment } from "react/jsx-runtime";
 4 | import Image from "next/image";
 5 | import { buildURL } from "imgix-url-builder";
   `----
@niftycodeltd niftycodeltd added the bug Something isn't working label Oct 18, 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 address 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

@niftycodeltd
Copy link
Author

niftycodeltd commented Oct 18, 2024

Ok bug was ignored by commenting out a line in my Next.config but still potential to cause issues in future?

@marvinbernd
Copy link

I found another compatibility issue with v1.7.0 and Next 14.x: #101

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