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

Windows build is not working #98

Closed
lordrip opened this issue Sep 7, 2023 · 0 comments · Fixed by #124
Closed

Windows build is not working #98

lordrip opened this issue Sep 7, 2023 · 0 comments · Fixed by #124
Assignees
Labels
bug Something isn't working
Milestone

Comments

@lordrip
Copy link
Member

lordrip commented Sep 7, 2023

Describe the Bug

When trying to build the application in a Windows environment, fails with a path error.

Steps to Reproduce the Bug or Issue

  1. Clone the repository
  2. Issue a yarn command to build the project for the first time

Notice how it can be completed:

(node:29760) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `node --trace-warnings ...` to show where the warning was created)
(node:29760) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
---
Error [ERR_UNSUPPORTED_ESM_URL_SCHEME]: Only URLs with a scheme in: file, data, and node are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'
    at new NodeError (node:internal/errors:405:5)
    at throwIfUnsupportedURLScheme (node:internal/modules/esm/load:131:11)
    at defaultLoad (node:internal/modules/esm/load:82:3)
    at nextLoad (node:internal/modules/esm/loader:163:28)
    at C:\Users\LordR\repos\kaoto-next\node_modules\ts-node\src\esm.ts:255:45
    at async addShortCircuitFlag (C:\Users\LordR\repos\kaoto-next\node_modules\ts-node\src\esm.ts:409:15)
    at async nextLoad (node:internal/modules/esm/loader:163:22)
    at async ESMLoader.load (node:internal/modules/esm/loader:603:20)
    at async ESMLoader.moduleProvider (node:internal/modules/esm/loader:457:11)
    at async link (node:internal/modules/esm/module_job:68:21) {
  code: 'ERR_UNSUPPORTED_ESM_URL_SCHEME'
}

Screenshots or Videos

No response

Platform

  • OS: [Windows]
@lordrip lordrip added the bug Something isn't working label Sep 7, 2023
@lordrip lordrip self-assigned this Sep 15, 2023
lordrip added a commit to lordrip/kaoto that referenced this issue Sep 15, 2023
For windows file path, `C:\` prefix are not supported as they
get confused with a regular URI.

The fix is to write the file path with `file://` protocol.

Fixes: KaotoIO#98

Related issue: nodejs/node#31710
lordrip added a commit that referenced this issue Sep 15, 2023
For windows file path, `C:\` prefix are not supported as they
get confused with a regular URI.

The fix is to write the file path with `file://` protocol.

Fixes: #98

Related issue: nodejs/node#31710
@lhein lhein moved this to Backlog in Kanban Board Sep 21, 2023
@lhein lhein moved this from Backlog to Done in Kanban Board Sep 21, 2023
@lhein lhein added this to the 0.1.0 - Smart Connectors' MVP milestone Sep 21, 2023
@lhein lhein modified the milestones: Smart Connectors' MVP, Feature Parity Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants