Ruben Taelman
Ruben Taelman
Can you try moving your `index` file outside of the `lib` directory as a test? (and updating the references in your `package.json`)
Hmm, that doesn't seem to be the cause of the problem then. Can you try setting your `typings` entry in `package.json` to refer to the actual index file, instead of...
Thanks for the findings @leorumma! > jsonld files are being generated in the lib folder. The correct one should be in the components folder The lib folder is correct though,...
Thanks for the findings @ixuz! > I find that the componentsjs-generator does not adhere to the configured paths in my package.json whenever the lsd:module is set to true. That is...
Do the findings in https://github.com/LinkedSoftwareDependencies/Components.js/issues/111#issuecomment-1368811736 help resolving any problems here?
Components.js currently only supports CommonJS modules indeed. The architecture is however ready for ESM support, so it's just a matter of implementing it. This is not part of my current...
For reference, adding support for loading ESM modules should just be a matter of implementing a new [IConstructionStrategy](https://github.com/LinkedSoftwareDependencies/Components.js/blob/master/lib/construction/strategy/IConstructionStrategy.ts). Currently, we have a [ConstructionStrategyCommonJs.ts](https://github.com/LinkedSoftwareDependencies/Components.js/blob/master/lib/construction/strategy/ConstructionStrategyCommonJs.ts), where we would require a ConstructionStrategyEsm in...
> We were trying to add [Conditional exports](https://nodejs.org/api/packages.html#conditional-exports) to sai-js https://github.com/janeirodigital/sai-js/pull/32 but that doesn't seem to solve the problem. @elf-pavlik Does it produce the same error as before? Have you...
No, not that I'm aware of.
I'm not convinced yet that we really need a JS-based serialization, but I'm definitely open to convincing :-) (I'd rather focus on making the declarative form more user-friendly)