Problem with local dependencies #520
VivienInteractive
started this conversation in
General
Replies: 2 comments 50 replies
-
|
Hey @VivienInteractive I have put together a reproduction at Can you try and reproduce on your end? You can run: |
Beta Was this translation helpful? Give feedback.
45 replies
-
|
There is just another small problem, now when I add a block with the add method there is by default the watermark in the beggining of the file, even if I add in jsrepo.json "watermark":false. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I'm reaching out because I'm encountering an issue when adding a block via jsrepo CLI.
Context:
We use a jsrepo registry that points to the branch
test_feature.cliof my repository. The blocks are organized into different categories.blocks
├──plugins
│ └──plugin-items
│ │ └──page.tsx
├──templates
└──utils
│ └──generate-meta.ts
And when i run my :
command to add the block named :
plugin-item :
It didn’t work :
But when I try directly install it :
It works, so I don’t understand what i miss, if you could help me, I tried copy your example like shadcn svelte or std but it didn’t works, here is but jsrepo-manifest.json :
{ "categories": [ { "name": "plugins", "blocks": [ { "name": "plugin-items", "directory": "packages/cli/blocks/plugins/plugin-items", "category": "plugins", "tests": false, "subdirectory": true, "list": true, "files": [ "page.tsx" ], "localDependencies": [ "utils/generate-meta" ], "dependencies": [], "devDependencies": [], "_imports_": { "../../utils/generate-meta": "{{utils/generate-meta}}" } } ] }, { "name": "utils", "blocks": [ { "name": "generate-meta", "directory": "packages/cli/blocks/utils", "category": "utils", "tests": false, "subdirectory": false, "list": true, "files": [ "generate-meta.ts" ], "localDependencies": [], "_imports_": {}, "dependencies": [ ], "devDependencies": [] } ] } ] }Thank you in advance for your help!
Best regards,
Vivien
Beta Was this translation helpful? Give feedback.
All reactions