How to avoid "Invalid block! <block-name> does not exist!"? #601
Replies: 2 comments 6 replies
-
|
Hmm this is weird because I don't understand how it would have let you build / publish your registry without including it if it's a dependency of another block ideally this isn't something that should ever happen in user land |
Beta Was this translation helpful? Give feedback.
-
|
I've moved "_generated", and "primitives" from
┌ jsrepo v2.4.5
│
◇ Retrieved blocks from @auth/svelte
┌ jsrepo v2.4.5
INFO Attempting to add ["lib/organizations"]
INFO Resolving @auth/svelte
INFO Resolved @auth/svelte
INFO Fetching blocks from @auth/svelte
INFO Trying to fetch from https://www.jsrepo.com/api/scopes/@auth/svelte/v/latest/files/jsrepo-manifest.json
INFO Got a response from https://www.jsrepo.com/api/scopes/@auth/svelte/v/latest/files/jsrepo-manifest.json 200 OK
INFO Retrieved blocks from @auth/svelte
INFO Installing blocks lib/organizations
<--- Last few GCs --->
[86098:0x903f000] 134412 ms: Scavenge (interleaved) 2042.0 (2080.0) -> 2040.6 (2084.2) MB, pooled: 0 MB, 9.27 / 0.00 ms (average mu = 0.172, current mu = 0.118) allocation failure;
[86098:0x903f000] 140489 ms: Mark-Compact (reduce) 2041.6 (2084.2) -> 2040.7 (2078.0) MB, pooled: 0 MB, 6013.94 / 0.00 ms (+ 3.4 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 6031 ms) (average mu = 0.064, cu
<--- JS stacktrace --->
FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
----- Native stack trace -----
1: 0xe1603a node::OOMErrorHandler(char const*, v8::OOMDetails const&) [node]
2: 0x11e3540 v8::Utils::ReportOOMFailure(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
3: 0x11e3817 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, v8::OOMDetails const&) [node]
4: 0x14110f5 [node]
5: 0x1411123 [node]
6: 0x142a1fa [node]
7: 0x142d3c8 [node]
8: 0x1c93091 [node]
Aborted (core dumped)Here is also the repo if you want to test it for yourself: https://github.com/mmailaender/auth/tree/feat/jsrepo (svelte folder) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
So after setting up

jsrepo init @auth/sveltein a fresh project I've calledjsrepo add lib/organizationswhich throws the errorInvalid block! convex/_generated does not exist!.convex/_generatedis an auto generated dependency on user side, that's why I have added it to theexcludeBlockssection in thejsrepo-build-config.json:"excludeBlocks": ["_generated", "primitives"],. But how can I configure it, that it will be also ignored during installation in userland and don't throw an error (as it will be autogenerated from the user after he starts his dev server)?jsrepo-build-config.json
{ "$schema": "https://unpkg.com/jsrepo@2.4.5/schemas/registry-config.json", "name": "@auth/svelte", "version": "0.0.2", "readme": "README.md", "meta": { "author": "Micha Mailänder", "bugs": "https://github.com/mmailaender/auth/issues", "description": "Plug & Play Auth Widgets for your application", "repository": "https://github.com/mmailaender/auth", "tags": ["auth", "svelte", "ui", "convex", "better-auth"] }, "dirs": ["./src"], "allowSubdirectories": true, "doNotListBlocks": [], "doNotListCategories": [], "listBlocks": [], "listCategories": [], "excludeDeps": ["svelte", "@sveltejs/kit"], "peerDependencies": { "svelte": "5.x.x", "@sveltejs/kit": "2.x.x", "tailwindcss": "4.x.x" }, "includeBlocks": [], "includeCategories": [], "excludeBlocks": ["_generated", "primitives"], "excludeCategories": [], "preview": false, "includeDocs": false, "rules": { "require-local-dependency-exists": "warn", "no-circular-dependency": "warn", "no-framework-dependency": "warn" } }Beta Was this translation helpful? Give feedback.
All reactions