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 Typescript, CORS errors #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Wadu436
Copy link

@Wadu436 Wadu436 commented Aug 13, 2023

This PR fixes the following errors I encountered during the getting started

  1. TS didn't compile (preprocess plugin was not registered in svelte.config.js)
Internal server error: /src/routes/+page.svelte:2:12 Unexpected token
  Plugin: vite-plugin-svelte
  File: /src/routes/+page.svelte:2:12
   1 |  <script lang="ts">import { Container, Display, Sprite, Panel } from "~/components";
   2 |  import type { PageData } from "./$houdini";
                    ^
   3 |  export let data: PageData;
   4 |  
  1. CORS error (I don't know what caused the error, but it's fixed by pointing the client at a relative url rather than an absolute one)
    image

@changeset-bot
Copy link

changeset-bot bot commented Aug 13, 2023

⚠️ No Changeset found

Latest commit: f897bc1

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

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

@Wadu436 Wadu436 marked this pull request as ready for review August 13, 2023 23:36
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.

None yet

1 participant