slider
slider copied to clipboard
WARN @vueform/slider doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module
WARN @vueform/slider doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix. 11:55:29
Happened to me today as well after updating Vite and other dependencies.
I am also seeing this in a Nuxt 3 project.
Looks like the issue is that there is no default export in the declaration file.
In src/index.d.ts
, try the following code:
import * as Slider from './Slider';
export default Slider;
Same issue on a Nuxt 3 project. @mchestnut fix works for me @adamberecz