Open jeswr opened 2 years ago
Thanks for reporting!
~So it looks like the solution on my end was to replace~
The error changes to
Error: Resource urn:npm:@comunica/bus-rdf-resolve-quad-pattern:IActorRdfResolveQuadPatternOutput is not a valid component, either it is not defined, has no type, or is incorrectly referenced by https://linkedsoftwaredependencies.org/bundles/npm/@comunica/bus-rdf-resolve-quad-pattern-intercept/^1.0.0/components/ActorRdfResolveQuadPatternIntercept.jsonld#IActorRdfResolveQuadPatternInterceptOutput.
If we replace
export type IActionRdfResolveQuadPatternIntercept = IActionRdfResolveQuadPattern;
export type IActorRdfResolveQuadPatternInterceptOutput = IActorRdfResolveQuadPatternOutput;
export type MediatorRdfResolveQuadPatternIntercept = MediatorRdfResolveQuadPattern;
with
// Revert to type = pattern once
export interface IActionRdfResolveQuadPatternIntercept extends IActionRdfResolveQuadPattern {};
export interface IActorRdfResolveQuadPatternInterceptOutput extends IActorRdfResolveQuadPatternOutput {};
export interface MediatorRdfResolveQuadPatternIntercept extends MediatorRdfResolveQuadPattern {};
Still weird that this only happens in a separate monrepo
Not sure what the problem is at first glance.
The fact that you get urn:npm:@comunica/bus-rdf-resolve-quad-pattern:IActorRdfResolveQuadPatternOutput
, and not a proper HTTPS URL seems to indicate that CJS doesn't find the CJS components of that package, which may indicate a dependency issue.
But it may also simply be a CJS bug in generics handling, since that stuff is pretty complex.
Issue type:
Description:
I've got reasoning components working for Comunica V2 by copy/pasting the components to https://github.com/comunica/comunica/tree/reasoning-experiments, but whenever I try to build the components in a separate monrepo (https://github.com/comunica/comunica-feature-reasoning/tree/incremental-engine-build) I get the following trace (https://pastebin.com/mXMZSREx).
The notable error is
Environment:
Componentsjs version 5 Node v17.4.0