genes icon indicating copy to clipboard operation
genes copied to clipboard

Non-existant type in exports.

Open vantreeseba opened this issue 1 year ago • 1 comments

This is probably an already known issue, but when trying to generate the exports for abstracts, it includes the impl version, even though that does not exist in the output.

i.e.

Abstract Vector3(vstruct) {
}

the index.js has

import {Vector3} from './vec.js';
import {Vector3_Impl_} from './vec.js';

Normally, this is probably fine, but when trying to use the ESM output as browser module, this causes it to fail to run.

I've gotten around it by just opening the index.js that is generated and commenting out the offending lines.

vantreeseba avatar Jun 21 '24 20:06 vantreeseba

Do you have a reproducible example? I can add it to the tests and see we can work around it.

benmerckx avatar Jun 24 '24 08:06 benmerckx