in express app, I used to do this
import path from 'path'
let name = path.basename('doc/img/picture.png')
Which works fine in expressjs
But in +server.ts in sveltekit
Where I do import path from 'path'
I got error path not available.
in express app, I used to do this
import path from 'path'
let name = path.basename('doc/img/picture.png')
Which works fine in expressjs
But in +server.ts in sveltekit
Where I do import path from 'path'
I got error path not available.