Cannot find module 'node:readline'

See original GitHub issue

Given a simple program:

var something = "else"

when compiling, I get the following error:

Error: Cannot find module 'node:readline'
Require stack:
- /Users/zolo/project/ftl/node_modules/@danielx/civet/dist/civet
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:92:18)
    at Object.<anonymous> (/Users/zolo/project/ftl/node_modules/@danielx/civet/dist/civet:13:12)
    at Module._compile (internal/modules/cjs/loader.js:1085:14)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1114:10)
    at Module.load (internal/modules/cjs/loader.js:950:32)
    at Function.Module._load (internal/modules/cjs/loader.js:790:14)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/Users/zolo/project/ftl/node_modules/@danielx/civet/dist/civet' ]
}

Civet is installed locally (not globally) and is ran like so:

civet ./something.civet ./something.ts

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
STRd6commented, Nov 11, 2022
0reactions
zolomatokcommented, Nov 12, 2022

@edemaine Oh, I’m so sorry, I missed the piping bit! It works no problem now!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Cannot find module 'readline-sync' : Node.js
if you don't have the dependency listed in your package.json file, try running this command from your cmd (cd into the directory where ......
Read more >
NodeJS 17.4.0 feature: node:readline/promises #1638 - GitHub
I'm getting an error: TS2307: Cannot find module 'node:readline/promises' or its corresponding type declarations. When trying to use:
Read more >
Replit Error: Cannot find module 'readline-sync' Fix - YouTube
If you ever get the error Cannot find module ' readline -sync' in replit, this is how to fix it.
Read more >
readline - npm
Simple streaming readline module.. Latest version: 1.3.0, last published: ... Start using readline in your project by running `npm i readline`.
Read more >
Readline | Node.js v19.3.0 Documentation
The node:readline module provides an interface for reading data from a Readable stream (such as process.stdin ) one line at a time. To...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found