Skip to content

repro vite.config.ts build error in esm#1

Open
holvi-sebastian wants to merge 1 commit into
valentinpalkovic:mainfrom
holvi-sebastian:main
Open

repro vite.config.ts build error in esm#1
holvi-sebastian wants to merge 1 commit into
valentinpalkovic:mainfrom
holvi-sebastian:main

Conversation

@holvi-sebastian
Copy link
Copy Markdown

Hi,

I had to reset pnpm-lock.yaml because it had references to packages at localhost that were missing.

The error occurs, when the referenced packages is type: module and index.ts imports a file with standard esm notation: export * from './foo.js' with the .js extension.

I'm slightly confused, though, because export * from './foo' does not cause the same error.

If ./foo works and vite is transpiling foobar, then I don't see why ./foo.js should fail.

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

Successfully merging this pull request may close these issues.

1 participant