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

Fix astro integration #620

Merged
merged 3 commits into from
Sep 7, 2023
Merged

Fix astro integration #620

merged 3 commits into from
Sep 7, 2023

Conversation

emmatown
Copy link
Member

@emmatown emmatown commented Sep 5, 2023

This generates a file into .astro (since that will already be gitignored) with imports to Keystatic packages and tells Vite to look at it for discovering dependencies to pre-bundle which fixes the problem of getting errors from Vite trying to load CommonJS modules as ESM

I'm not going to update the template to use this just yet, I'd like to get this released first to make sure that it definitely works first (though from the snapshot release, it seems to)

Snapshot release for testing: @keystatic/[email protected], https://github.com/Thinkmill/keystatic/actions/runs/6105022202/job/16567883939#step:7:33

Fixes #580

@changeset-bot
Copy link

changeset-bot bot commented Sep 5, 2023

🦋 Changeset detected

Latest commit: 4ff81cd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@keystatic/astro Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
keystar-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 3:42am
keystatic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 3:42am
keystatic-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 3:42am

@emmatown emmatown force-pushed the fix-astro-integration branch from 9022773 to 7901df7 Compare September 5, 2023 06:29
@emmatown emmatown temporarily deployed to release September 5, 2023 06:31 — with GitHub Actions Inactive
@emmatown emmatown force-pushed the fix-astro-integration branch from 1ec015a to e70b575 Compare September 7, 2023 02:14
@emmatown emmatown force-pushed the fix-astro-integration branch from e70b575 to 736b87d Compare September 7, 2023 02:20
@emmatown emmatown temporarily deployed to release September 7, 2023 03:20 — with GitHub Actions Inactive
Copy link
Member

@JedWatson JedWatson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. If this works, I love it*

@emmatown emmatown merged commit e684e5a into main Sep 7, 2023
6 checks passed
@emmatown emmatown deleted the fix-astro-integration branch September 7, 2023 04:18
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.

Error: "lodash" does not provide an export member "get"
2 participants