liriliri / luna

UI library
https://luna.liriliri.io
MIT License
251 stars 22 forks source link

Console ES Modlues Not Working Correctly #11

Closed cemalgnlts closed 1 year ago

cemalgnlts commented 1 year ago

Hi,

I am trying to add the component using Vite and React.

If I import this way:

import LunConsole from "luna-console";

The error I received:

Uncaught ReferenceError: module is not defined
    at luna-console.js?v=a7812482:6372:14
surunzi commented 1 year ago

Fixed.