StaticMania / keep-react

Keep React is an open-source component library built on Tailwind CSS and React.js. It provides a versatile set of pre-designed UI components to build modern web applications.
https://react.keepdesign.io
MIT License
1.34k stars 113 forks source link

To load an ES module, set "type": "module" in the package.json or use the .mjs extension. #113

Closed nayanrabiul closed 9 months ago

nayanrabiul commented 10 months ago

i am facing this error with astro

(node:17808) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension. (Use node --trace-warnings ... to show where the warning was created) 03:33:23 [ERROR] Unexpected token 'export' Stack trace: at internalCompileFunction (node:internal/vm:73:18) at Module._compile (node:internal/modules/cjs/loader:1205:27) at Module.load (node:internal/modules/cjs/loader:1091:32) at cjsLoader (node:internal/modules/esm/translators:284:17) at ModuleJob.run (node:internal/modules/esm/module_job:217:25)24)