Skip to content

TypeError: (0 , _url.pathToFileURL) is not a function #3

@sawaYch

Description

@sawaYch

What is the problem

When I start the cmusd, it is fine;
but when I play my music, the program crash with error prompt

TypeError: (0 , _url.pathToFileURL) is not a function.
...
...

Environment

Platform: Ubuntu 18.04 LTS
NodeJS Version: 8.x

Soulution

After my research, I find that the version of NodeJS causing this problem ( function pathToFileURL is introduced in NodeJS 10 but I am using 8.x).

So, I update Node, delete all the cmusd build dependencies, rebuild;
then eventually, everything works fine.
Suggestion: I think we should remind others to use NodeJS 10 in the README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions