Issue with symlink in mono repo: "No client-side render()
hook found." with a renderer in a local package
#690
-
DescriptionHi, This setup gives me the following error:
I think it is because the "consumer" of the renderer package can't find the renderer folder in the node_modules folder. I put together two minimal reproductions, one using PNPM workspaces (which is the first that gave me an error) and one using NPM workspaces (to see if it was an issue with PNPM first).
Both reproduction use the step-react package and the stem-react examples. The only modification I made is that I removed the isActive logic from Link.tsx to avoid having to switch the dependencies while debuging. I have a feeling that the error is due to the renderer package being symlinked but I am not really sure. You can see in the README's of the reproductions the logging that shows that in one case the external I checked in the docs and in the GitHub issues if there was anything related to symlinks and mono repo without success so I post this here. Let me know if I can provide more context and thanks in advance for any answer ! Error Message + Error Stack
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I didn't had a closer look at your example, but it's likely due to the fact that VPS currently only crawls packages with a name that have the prefix If you rename your package to Note that the Extensions API is experimental and subject to breaking changes. Curious: what is it you're building? |
Beta Was this translation helpful? Give feedback.
I didn't had a closer look at your example, but it's likely due to the fact that VPS currently only crawls packages with a name that have the prefix
@org/stem-
.If you rename your package to
@some-org-name/stem-
, does it work then?Note that the Extensions API is experimental and subject to breaking changes.
Curious: what is it you're building?