Closed ericrange closed 2 months ago
I'm having this same issue in Node as well:
const Diff = require('diff');
Error: Cannot find module 'diff'
Nevermind. I accidentally ran npm install jsdiff
instead of npm install diff
@ericrange can you give me some minimal instructions on how to reproduce the error you're seeing? Happy to try to figure out a fix, but my knowledge of JavaScript module systems is limited and I'd never heard of vite prior to reading this issue.
Closing pending instructions on how to repro the error.
with the latest vite, there is the following error. is there an official es6 way to import this lib?