Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existant type in exports. #75

Open
vantreeseba opened this issue Jun 21, 2024 · 1 comment
Open

Non-existant type in exports. #75

vantreeseba opened this issue Jun 21, 2024 · 1 comment

Comments

@vantreeseba
Copy link

vantreeseba commented Jun 21, 2024

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.

@benmerckx
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants