Cannot find module 'node:readline'
See original GitHub issueGiven 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:
- Created 10 months ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@zolomatok I published a possible fix in v0.4.19-pre.7 give it a shot!
@edemaine https://github.com/DanielXMoore/Civet/commit/2ce2ff70892d48f7a5566da4265f4149782704e8
@edemaine Oh, I’m so sorry, I missed the piping bit! It works no problem now!