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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolving ext-src imports in the SDK if the user declares an import with the .js ext #2096

Open
infomiho opened this issue Jun 12, 2024 · 3 comments
Labels
dx shouldfix We should do/fix this at some point

Comments

@infomiho
Copy link
Contributor

Users get a weird error saying they can't import queries.js.js something something.

I've reproduced with the latest Wasp version: 0.13.2

As far as I can see, it seems related to the exports fields and the ext-src/* entry 馃槃

Two instances on Discord:

@Martinsos Martinsos added dx shouldfix We should do/fix this at some point labels Jun 12, 2024
@Martinsos
Copy link
Member

Sending this back to triage, multiple people had this and error message is quite confusing, we should take care of it.

@Martinsos
Copy link
Member

Martinsos commented Jun 12, 2024

This is in a way related to #2087 , as they might share a solution, which is us completely forbidding, in main.wasp, to have .js or .ts extensions in ext imports, or, another solution, somehow additionally processing extensions to fit with what Wasp requires.

@Martinsos
Copy link
Member

Martinsos commented Jun 24, 2024

User said following:

Was odd because the issue was nonexistent until one day it wasn't.

That is peculiar! Might it mean that one of the deps updated minor version and caused this that way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dx shouldfix We should do/fix this at some point
Projects
None yet
Development

No branches or pull requests

2 participants