Bare Native Import
Import native Node.js modules without the node: protocol.
Correct
import fs from 'fs'
import { readFile } from 'fs'
Incorrect
import fs from 'node:fs'
Fix
Remove the node: protocol from native Node.js import specifiers.
Import native Node.js modules without the node: protocol.
import fs from 'fs'
import { readFile } from 'fs'
import fs from 'node:fs'
Remove the node: protocol from native Node.js import specifiers.