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

[Bug]: Cannot build with newer version of nodejs #6932

Closed
5 of 6 tasks
raff opened this issue Feb 26, 2025 · 1 comment
Closed
5 of 6 tasks

[Bug]: Cannot build with newer version of nodejs #6932

raff opened this issue Feb 26, 2025 · 1 comment
Labels
B: crash bug Something isn't working U: duplicate This issue or pull request already exists

Comments

@raff
Copy link

raff commented Feb 26, 2025

Guidelines

Describe the bug

I was trying to build FreeTube on my Mac (15.3.1) since the pre-built version doesn't run (I get an error that the application is corrupted).

I have node 18.20.7 installed (via homebrew) and I was getting errors in a couple of build scripts:

  • _scripts/patchShaka.mjs
  • _scripts/injectAllowedPaths.mjs

The error was related to using import.meta.dirname that apparently is not avaliable with newer version of nodejs. The suggestion is to use the following:

`
import { dirname } from 'path'
import { fileURLToPath } from 'url'

dirname = dirname(fileURLToPath(import.meta.url));
`

Expected Behavior

I should be able to build (or at least get an error that says I am using the wrong version of nodejs)

Issue Labels

causes crash

FreeTube Version

a779e46

Operating System Version

Macos Sequoia 18.20.7

Installation Method

other

Primary API used

Local API

Last Known Working FreeTube Version (If Any)

No response

Additional Information

No response

Nightly Build

@raff raff added the bug Something isn't working label Feb 26, 2025
@github-project-automation github-project-automation bot moved this to To assign in Bug Reports Feb 26, 2025
@efb4f5ff-1298-471a-8973-3d47447115dc

Duplicate of #6920

@efb4f5ff-1298-471a-8973-3d47447115dc efb4f5ff-1298-471a-8973-3d47447115dc closed this as not planned Won't fix, can't repro, duplicate, stale Feb 26, 2025
@github-actions github-actions bot added the U: duplicate This issue or pull request already exists label Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B: crash bug Something isn't working U: duplicate This issue or pull request already exists
Projects
Status: To assign
Development

No branches or pull requests

2 participants