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 basePackage value for "Build a full-stack web app with Kotlin Multiplatform" tutorial #3680

Closed
wants to merge 1 commit into from

Conversation

kuroski
Copy link

@kuroski kuroski commented Jul 14, 2023

I am currently going through the tutorial for "Build a full-stack web app with Kotlin Multiplatform" but found an issue when I reached the "Serve HTML and JavaScript files from Ktor" part.

In my case, I was facing a 404 error when running the app for shoppinglist.js file.

image

After some trials and errors, I finally found that the issue was that the basePackage property from Ktor should actually be empty

staticResources("/", "")
image

…tiplatform" tutorial

I am currently going through the tutorial but found an issue when I reached the [Serve HTML and JavaScript files from Ktor](https://kotlinlang.org/docs/multiplatform-full-stack-app.html#serve-html-and-javascript-files-from-ktor) part.

In my case, I was facing a 404 error when running the app for `shoppinglist.js` file.

<img width="1444" alt="image" src="https://github.com/kuroski/js-to-jsx/assets/1855125/f7dc6ab8-5475-494c-a19e-c7ddf95b82ec">

After some trials and errors, I finally found that the issue was that the `basePackage` property from `Ktor` should actually be empty

```
staticResources("/", "")
```

<img width="1847" alt="image" src="https://github.com/kuroski/js-to-jsx/assets/1855125/339be57f-35b2-48d4-b341-73a92a5dbb97">
@danil-pavlov danil-pavlov self-requested a review July 14, 2023 10:43
@github-actions
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

@github-actions github-actions bot added the Stale label Aug 14, 2023
@github-actions github-actions bot closed this Aug 21, 2023
@danil-pavlov danil-pavlov reopened this Aug 21, 2023
@danil-pavlov danil-pavlov requested a review from a team as a code owner August 21, 2023 10:00
@danil-pavlov
Copy link
Contributor

Daniel, thank you for the report, and I'm sorry it took so long. We discuused this issue with developers and decided to take a different approach to solve this issue. Please see #3764

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.

2 participants