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

Kaoto on Windows can't load catalog #1654

Closed
Ortofta opened this issue Nov 22, 2024 · 0 comments · Fixed by #1661
Closed

Kaoto on Windows can't load catalog #1654

Ortofta opened this issue Nov 22, 2024 · 0 comments · Fixed by #1661
Labels
bug Something isn't working build Build and GitHub related issues
Milestone

Comments

@Ortofta
Copy link

Ortofta commented Nov 22, 2024

Describe the Bug

When building and running the Kaoto web app on Windows, it can't load the Camel catalog. Doing the same on RHEL 9 or in WSL (Ubuntu 22.0.4) works fine.

Steps to Reproduce the Bug or Issue

  1. run yarn workspace @kaoto/kaoto run start in Powershell, the following is the output of the command:
PS C:\data\GitHub\kaoto> yarn workspace @kaoto/kaoto run start
Found `@kaoto/camel-catalog' in C:/data/GitHub/kaoto/packages/catalog-generator/dist/camel-catalog

  VITE v5.4.11  ready in 2881 ms

  ➜  Local:   http://localhost:5173/
  ➜  Network: use --host to expose
  ➜  press h + enter to show help
[vite-plugin-static-copy] No items found.
  1. Navigate to http://localhost:5173/
  2. Error message is shown: The Catalog couldn't be loaded - see screenshot

Screenshots or Videos

Kaoto-error

Platform

  • OS: Windows 11, NodeJS v18.20.4
  • Browser: Firefox 132.0.2
  • Version: 2.3.0-RC1
@Ortofta Ortofta added the bug Something isn't working label Nov 22, 2024
@lordrip lordrip added the build Build and GitHub related issues label Nov 22, 2024
lordrip added a commit to lordrip/kaoto that referenced this issue Nov 25, 2024
Currently, dev mode is broken in Windows since the `vite.config.js` file
is not copying the catalog files properly.

The fix is to use the `normalizePath` function from `vite`, so it uses a
linux-like path to copy the files.

fix: KaotoIO#1654
lordrip added a commit to lordrip/kaoto that referenced this issue Nov 25, 2024
Currently, dev mode is broken in Windows since the `vite.config.js` file
is not copying the catalog files properly. In addition to that, the
files path are generated using the underlying OS path separator.

The fix is to use the `normalizePath` function from `vite`, so it uses a
linux-like path to copy the files. From the Catalog generator part, it
forces to use the `/` as path separator, so it loads properly in the
browser.

fix: KaotoIO#1654
@lordrip lordrip moved this from New to Backlog in Kanban Board Nov 26, 2024
@lordrip lordrip added this to the 2.4.0 milestone Nov 26, 2024
@lordrip lordrip moved this from Backlog to In Review in Kanban Board Nov 26, 2024
@lhein lhein modified the milestones: 2.4.0, 2.3.0 Dec 3, 2024
lordrip added a commit that referenced this issue Dec 3, 2024
Currently, dev mode is broken in Windows since the `vite.config.js` file
is not copying the catalog files properly. In addition to that, the
files path are generated using the underlying OS path separator.

The fix is to use the `normalizePath` function from `vite`, so it uses a
linux-like path to copy the files. From the Catalog generator part, it
forces to use the `/` as path separator, so it loads properly in the
browser.

fix: #1654
@github-project-automation github-project-automation bot moved this from In Review to Done in Kanban Board Dec 3, 2024
lordrip added a commit to lordrip/kaoto that referenced this issue Dec 3, 2024
Currently, dev mode is broken in Windows since the `vite.config.js` file
is not copying the catalog files properly. In addition to that, the
files path are generated using the underlying OS path separator.

The fix is to use the `normalizePath` function from `vite`, so it uses a
linux-like path to copy the files. From the Catalog generator part, it
forces to use the `/` as path separator, so it loads properly in the
browser.

fix: KaotoIO#1654
lordrip added a commit to lordrip/kaoto that referenced this issue Dec 3, 2024
Currently, dev mode is broken in Windows since the `vite.config.js` file
is not copying the catalog files properly. In addition to that, the
files path are generated using the underlying OS path separator.

The fix is to use the `normalizePath` function from `vite`, so it uses a
linux-like path to copy the files. From the Catalog generator part, it
forces to use the `/` as path separator, so it loads properly in the
browser.

fix: KaotoIO#1654
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Build and GitHub related issues
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants