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

Runtime compiled component #414

Open
7 tasks done
JeffreyArts opened this issue Aug 18, 2024 · 0 comments
Open
7 tasks done

Runtime compiled component #414

JeffreyArts opened this issue Aug 18, 2024 · 0 comments

Comments

@JeffreyArts
Copy link

Describe the bug

My Vue3 application has some business logic that requires me to render some HTML which could include a limited set of vue components. When I run vite (build), this all works. Running vite-ssg will not. The error is related to no being able to use import and it is suggested to make modifications to the builder (examples for Webpack & Laravel) to get this working. I've seen in the past that all issues related to imports are referred to the original package maintainers, but this leads to a dead end. Isn't there really no alternative?

Reproduction

https://github.com/JeffreyArts/vite-ssg-esm-bundler

System Info

System:
    OS: macOS 14.1.2
    CPU: (8) arm64 Apple M1
    Memory: 123.89 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.22 - ~/.yarn/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
  Browsers:
    Brave Browser: 127.1.68.137
    Chrome: 127.0.6533.120
    Safari: 17.1.2

Used Package Manager

npm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
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

1 participant