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

Astro build is not support #779

Open
msereniti opened this issue Sep 28, 2023 · 0 comments
Open

Astro build is not support #779

msereniti opened this issue Sep 28, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@msereniti
Copy link
Contributor

User report is here:

we are currently exploring the possibility of using astro as an ssr/template render framework
overall everything works great, but we're running into a few issues that seem to be on the Vite side

  1. imports like @semcore/ui/* do not work, we get the error Unexpected token 'export'
  2. when using imports like @semcore/*, everything works fine in development mode, but during the production build we > get an error like Element type is invalid: expected a string, which can be solved with such hack:
import $Button from "@semcore/button";
const Button = $Button.default || $Button

I found some opened github issues, but nothing has helped me so far

  1. Inconsistent handling of default imports (exports) in astro dev and astro build withastro/astro#5277
  2. ESM dependencies are not resolved correctly during build withastro/astro#4692
  3. Production environment library method does not exist vitejs/vite#9061

It seems that issue is caused by weird Astro resolver but anyway we must support it.

@msereniti msereniti added the bug Something isn't working label Sep 28, 2023
@msereniti msereniti self-assigned this Sep 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant