Skip to content

TypeError: c_1455079.charCodeAt is not a function" on jsfs' readFileSync #1

@halloleo

Description

@halloleo

I'm trying nodejs/jsfs and get a node runtime error "TypeError: c_1455079.charCodeAt is not a function".

Here my little program read_try.nim:

import nodejs/jsfs

requireFs()
let data = readFileSync("sometext.txt")
echo $data

and I compile it with

nim js read_try.nim

Does this maybe means, node cannot find the file sometext.txt? But sounds weird to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions