-
Notifications
You must be signed in to change notification settings - Fork 8
node-sass dependency #7
Comments
is this issue resolved. ?? |
Afaikt, no! I tried to install
Then I tried to install node-sass manually first by using
node version 18.15.0 |
I can confirm that it's not possible to install this plugin on Windows 11 based system without node-sass
|
I am also running into this issue when trying to install the package.
|
Same issue here. Are there any future plans to fix this? |
The |
Thanks @SimeonGriggs for the update. 🙏 Given the archived status of the project on which this depends, that doesn't seem likely... where does this leave sanity-plugin-seo-pane ? Is it safe to say this project is not longer viable? Are there plans to transition it to something else... like, just supporting the new metadata API in next.js 13, or...idk... interfacing with next-seo. |
The npm package This plugin relies entirely on this package to operate, and it's quite open about that in the README (it's the second word 😅 of the first paragraph), so it is then only as functional and up-to-date as that underlying package. The SEO scores and feedback that is shown in the plugin are all evaluations done by that package, so switching it out for another evaluation tool would be to change the plugin completely. Given there are other API-driven services for SEO analysis, I think it would be more interesting to see unique SEO plugins developed to show feedback from those services. |
Hi. Is der any Update on this? Or any hack? I am getting errors installing the Plugin and no fixes help. Thanks! |
This relies on an archived node package called yoastseo. Whatever @SimeonGriggs is saying is wrong because he is linking a PHP package which won't work with npm nor with node and is installed trough composer on wordpress projects. Therefor also this sanity-plugin-seo-pane is dead if they are not updating and removing the dependency. |
@lukasentebbe My current workaround for this issue is to install the latest version of node-sass into my project. I'm using pnpm, which appears to resolve to the new version automatically, however, this is not the case for npm and requires an additional step to override the peer dependency. pnpm: npm: If you are using npm, include the following into your package.json to ensure the peer dependency is resolved to the version now installed in your app: "overrides": {
"sanity-plugin-seo-pane": {
"node-sass": "$node-sass"
}
} For anyone using Next.js, make sure you also add the following to your next.config.js to avoid errors with importing ESM packages: experimental: {
esmExternals: 'loose'
},
transpilePackages: [
"sanity-plugin-seo-pane",
"lodash-es",
"yoastseo",
"@yoast",
], |
@CC-Matthias - Simeon is correct. The repo he is linking is a monorepo, and has multiple packages published from it. One of them is this yoastseo package. This is because the deprecated repo noted above has been moved in to this new repo instead. This means the dependency is not deprecated, just that the original repo is deprecated, as it's been moved. The new-location of the code even had an update 4 days ago, showing it's still active. However, they have stopped updating the published This issue is open in the yoastseo repository, where Simeon has asked for them to work on publishing updates to the package again to |
@SimeonGriggs Perhaps we could fork and publish it under a temporary name, to allow us to make the updates to the seo-pane? It looks we can use the |
This got me through the initial npm install, but now I'm running into some errors popping up within the studio. Uncaught error: _util2.default.inherits is not a function Any thoughts on this? |
I can't install it either. Seems to be because of the |
Got the same error today. Check out compatibility-with-sanity-studio-v3-running-on-vite in the READM. This fixed it for me. |
I'm facing the same issue |
Somewhere along the line, node-sass is a dep of this project.
I install the seo-pane on a project yesterday at home, and pulling down that repo today at work I couldn't get npm to install deps because of node-gyp and node-sass. Removing seo-pane completely solved my issue.
The text was updated successfully, but these errors were encountered: