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

Sanity V3 - Failed to resolve entry for the package "yoastseo" #64

Closed
thartman94 opened this issue Dec 9, 2022 · 10 comments
Closed

Sanity V3 - Failed to resolve entry for the package "yoastseo" #64

thartman94 opened this issue Dec 9, 2022 · 10 comments

Comments

@thartman94
Copy link

Seeing this error when trying to run on Sanity V3:

node_modules/vite/node_modules/esbuild/lib/main.js:1336:21: ERROR: [plugin: vite:dep-pre-bundle] Failed to resolve entry for package "yoastseo". The package may have incorrect main/module/exports specified in its package.json.
    at failureErrorWithLog (/home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:1575:15)
    at /home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:1033:28
    at runOnEndCallbacks (/home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:1447:61)
    at buildResponseToResult (/home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:1031:7)
    at /home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:1143:14
    at responseCallbacks.<computed> (/home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:680:9)
    at handleIncomingPacket (/home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:735:9)
    at Socket.readFromStdout (/home/tom/work/projects/static-v2/studio/node_modules/vite/node_modules/esbuild/lib/main.js:656:7)
    at Socket.emit (node:events:513:28)
    at addChunk (node:internal/streams/readable:315:12)
@aascione-mw
Copy link

I am experiencing the same on Sanity V3, but not on V2. It seems to be related to vite and the resolution of the 'yoastseo' module.
Could you please give us a workaroung/fix?

@Designer023
Copy link

I'm getting the same issue

@stijnelskens
Copy link

Same here!
Any updates?

@thartman94
Copy link
Author

did some more digging, looks like the issue is actually with yoast themselves and not sanity-plugin-seo-tools. Here's a related issue i found: Yoast/wordpress-seo#19359

@Designer023
Copy link

Designer023 commented Mar 1, 2023

did some more digging, looks like the issue is actually with yoast themselves and not sanity-plugin-seo-tools. Here's a related issue i found: Yoast/wordpress-seo#19359

From what I can see, that is merged and released, so it may just be a simple as bumping the yoastseo package in this repo up to 1.91.1.

@LiamMartens
Copy link
Owner

Published a new version with updated yoast version - but also moved yoastseo to a peerdependency so the yoast version can be managed manually

@Designer023
Copy link

Awesome. Thank you for making the update so quickly 😄

@Designer023
Copy link

👏 Installed, added yoastseo, and updated my structure with the config. Working like a charm. Thank you again 👍

@thartman94
Copy link
Author

I tried integrating the updated package but am now seeing this error - "TypeError: _util2.default.inherits is not a function". Is anyone else having this issue?

@JustinKasad
Copy link

I'm seeing the same error. @thartman94 Did you find a solution?

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

No branches or pull requests

6 participants