File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,8 @@ const isFunction = typeof readFileSync === "function";
2424
2525getSomething ( isFunction ) ;
2626
27- const myPath : PathLike = new URL ( "file.txt" , import . meta. url ) ;
28- const myPath2 : PathOrFileDescriptor = new URL ( "file.text" , import . meta. url ) ;
27+ const myPath : PathLike = new URL ( "./ file.txt" , import . meta. url ) ;
28+ const myPath2 : PathOrFileDescriptor = new URL ( "./ file.text" , import . meta. url ) ;
2929const myTime : TimeLike = new Date ( ) ;
3030
3131getSomething ( myPath ) ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ async function getRandomNumbers() {
3232let content ;
3333
3434try {
35- content = await readFile ( new URL ( "file.txt" , import . meta. url ) ) ;
35+ content = await readFile ( new URL ( "./ file.txt" , import . meta. url ) ) ;
3636} catch ( err ) {
3737 throw new Error ( "Error fetching data" , { cause : err } ) ;
3838}
You can’t perform that action at this time.
0 commit comments