Vitesse + '@cheprasov/qrcode' import problem #274
-
In dev mode
runing correctly. But in build mode systax error
Builder say good, but in dev mode the construction does not work. Switch the code between dev and build mode all the time is a bad idea. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
It seems to me there is issue with some imports after upgrade vite-ssg, I have similar problem with scss files. |
Beta Was this translation helpful? Give feedback.
-
Solution find!
Work in dev and in build mode. |
Beta Was this translation helpful? Give feedback.
Solution find!
import * as pkg from '@cheprasov/qrcode'; const { QRCodeSVG } = pkg;
Work in dev and in build mode.