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

throw new ERR_INVALID_FILE_URL_PATH('must be absolute') #18

Open
saraElsanan opened this issue Nov 24, 2024 · 12 comments
Open

throw new ERR_INVALID_FILE_URL_PATH('must be absolute') #18

saraElsanan opened this issue Nov 24, 2024 · 12 comments

Comments

@saraElsanan
Copy link

saraElsanan commented Nov 24, 2024

I installed the new Cli
and then i tried to creat a new theme or even login or using the help , i always get this error
PS. We use NVM to mange multiple Node versions , so i tested on v14 , v16 , v18 , v20 and still the same issue in every vesrion
plusI tested on 4 different machines and i still have the same issue

any help please

 themes-cli new my-awesome-theme 
node:internal/url:1450
    throw new ERR_INVALID_FILE_URL_PATH('must be absolute');
    ^

TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute
    at new NodeError (node:internal/errors:405:5)
    at getPathFromURLWin32 (node:internal/url:1450:11)
    at fileURLToPath (node:internal/url:1480:22)
    at 9553 (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:322609)
    at a (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:597286)
    at 6970 (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:264511)
    at a (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:597286)
    at 7933 (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:261630)
    at a (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:597286)
    at 8186 (C:\Users\Sara\AppData\Roaming\nvm\v18.20.3\node_modules\@zidsa\themes-cli\dist\zid-theme.js:2:246224) {
  code: 'ERR_INVALID_FILE_URL_PATH'
}

Node.js v18.20.3
@saraElsanan
Copy link
Author

is there any update in this issue ?

@anas-js
Copy link

anas-js commented Dec 27, 2024

i have same error

@pdj1985
Copy link
Collaborator

pdj1985 commented Jan 16, 2025

Hello @anas-js and @saraElsanan i'm testing the fix, should be released shortly

@pdj1985
Copy link
Collaborator

pdj1985 commented Jan 16, 2025

Hello, the change is live here: https://www.npmjs.com/package/@zidsa/themes-cli@latest @saraElsanan @anas-js

@pdj1985 pdj1985 closed this as completed Jan 16, 2025
@anas-js
Copy link

anas-js commented Jan 18, 2025

The problem is not solved @pdj1985

@zidsa/[email protected]

Image

@pdj1985
Copy link
Collaborator

pdj1985 commented Jan 18, 2025

Hello @anas-js did you build the latest version of the client? I tested it both Mac and windows 10 and worked fine. Could you provide more info?

@anas-js
Copy link

anas-js commented Jan 18, 2025

Hello @anas-js did you build the latest version of the client? I tested it both Mac and windows 10 and worked fine. Could you provide more info?

@pdj1985

I deleted the package and re-downloaded it as shown in front of you. For more information:

  • windows 11
  • npm 11.0.0
  • node v22.11.0

@SaraMohElsanan
Copy link

i still have the same issue , I uninstalled the old version and reinstall it
ans i still get the same error
this is the version of the package
"@zidsa/themes-cli": {
"version": "1.0.5",
"overridden": false
},

i'm using windows 11
node 18.12.1
npm 8.19.2

`> themes-cli help
node:internal/url:1458
throw new ERR_INVALID_FILE_URL_PATH('must be absolute');
^

TypeError [ERR_INVALID_FILE_URL_PATH]: File URL path must be absolute
at new NodeError (node:internal/errors:393:5)
at getPathFromURLWin32 (node:internal/url:1458:11)
at fileURLToPath (node:internal/url:1488:22)
at 9553 (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:327720)
at a (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:602880)
at 6970 (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:269694)
at a (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:602880)
at 7933 (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:265939)
at a (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:602880)
at 8186 (C:\Users\sosys\AppData\Roaming\npm\node_modules@zidsa\themes-cli\dist\zid-theme.js:2:246224) {
code: 'ERR_INVALID_FILE_URL_PATH'
}`

@pdj1985
Copy link
Collaborator

pdj1985 commented Jan 19, 2025 via email

@anas-js
Copy link

anas-js commented Jan 23, 2025

@pdj1985 any Updates?

@pdj1985 pdj1985 reopened this Jan 23, 2025
@pdj1985
Copy link
Collaborator

pdj1985 commented Jan 23, 2025

Hello @anas-js i tried to reproduct it to no avail, please check my video. Let me know if we can have a call and check it sharing your screen

@pdj1985
Copy link
Collaborator

pdj1985 commented Jan 23, 2025

Hello @anas-js For some reason, the audio is not heard, but basically i was saying I couldn't reproduce it in windows 11 nor 10, so im not sure how else i can try it.

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

No branches or pull requests

4 participants